|
|
|
Локальный MySQL
|
|||
|---|---|---|---|
|
#18+
Задача: Есть программа с MySQL, её надо ставить на машины клиентов без доступа к серверу в интернете Варианты: Ставить программу с сервером MySQL, то есть варианты когда: 1. сервер MySQL запускается из службы (Win2000, WinXP) при загрузке 2. сервер MySQL запускается при старте программы и останавливается при выходе из программы Хотелось бы использовать второй вариант. Подскажите как из программы запускать и останавливать сервер? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 09.09.2004, 09:44 |
|
||
|
Локальный MySQL
|
|||
|---|---|---|---|
|
#18+
Функция ShellExecute или ShellExecuteEx читай MSDN. Там в ней пишешь какой файл запустить. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 09.09.2004, 11:32 |
|
||
|
Локальный MySQL
|
|||
|---|---|---|---|
|
#18+
Программа на чем пишется? Или это уже готовое приложение "третьей стороны"? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 09.09.2004, 11:46 |
|
||
|
Локальный MySQL
|
|||
|---|---|---|---|
|
#18+
ShelExecute - это то понятно Надо знать КАКОЙ файл запускать, и с КАКИМ ключем, а в документации к MySQL этого нет :( ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 09.09.2004, 11:50 |
|
||
|
Локальный MySQL
|
|||
|---|---|---|---|
|
#18+
>Программа на чем пишется? Или это уже готовое приложение "третьей стороны"? Delphi 7 - сам пишу... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 09.09.2004, 11:52 |
|
||
|
Локальный MySQL
|
|||
|---|---|---|---|
|
#18+
Насколько я знаю, для С есть спец. библиотека, типа "внутренний" сервер - нет надобности в mysqld (если не ошибаюсь..). Жаль, что у тебя на Delphi.. Для корабля, который не знает куда плыть, нет попутного ветра... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 09.09.2004, 13:05 |
|
||
|
Локальный MySQL
|
|||
|---|---|---|---|
|
#18+
PilotНасколько я знаю, для С есть спец. библиотека, типа "внутренний" сервер - нет надобности в mysqld (если не ошибаюсь..). Жаль, что у тебя на Delphi.. внутренний сервер - это типа не надо вообще сервер MySQL в систему устанавливать??? Я в своей программе обхожусь без libmysql.dll - всё встроено... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 09.09.2004, 13:17 |
|
||
|
Локальный MySQL
|
|||
|---|---|---|---|
|
#18+
DiabloShelExecute - это то понятно Надо знать КАКОЙ файл запускать, и с КАКИМ ключем, а в документации к MySQL этого нет :( Ну как этого нет? :( Разве это не оно? автор2.6.1.1 Starting MySQL on Windows 95, 98, or Me On these versions of Windows, MySQL uses TCP/IP to connect a client to a server. (This will allow any machine on your network to connect to your MySQL server.) Because of this, you must make sure that TCP/IP support is installed on your machine before starting MySQL. You can find TCP/IP on your Windows CD-ROM. Note that if you are using an old Windows 95 release (for example, OSR2), it's likely that you have an old Winsock package; MySQL requires Winsock 2! You can get the newest Winsock from http://www.microsoft.com/. Windows 98 has the new Winsock 2 library, so it is unnecessary to update the library. To start the mysqld server, you should start a console window (a ``DOS'' window) and enter this command: shell> C:\mysql\bin\mysqld This will start mysqld in the background. That is, after the server starts up, you should see another command prompt. (Note that if you start the server this way on Windows NT, 2000, or XP, the server will run in the foreground and the next command prompt will not appear until the server exits. To run client programs while the server is running, you should open another console window.) You can stop the MySQL server by executing this command: shell> C:\mysql\bin\mysqladmin -u root shutdown This invokes the MySQL administrative utility mysqladmin to connect to the server as root, which is the default administrative account in the MySQL grant system. Please note that users in the MySQL grant system are wholly independent from any login users under Windows. If mysqld doesn't start, please check the error log to see if the server wrote any messages there to indicate the cause of the problem. The error log is located in the `C:\mysql\data' directory. It is the file with a suffix of `.err'. You can also try to start the server as mysqld --console; in this case, you may get some useful information on the screen that may help solve the problem. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 09.09.2004, 13:18 |
|
||
|
Локальный MySQL
|
|||
|---|---|---|---|
|
#18+
пока что удалось: 1. запустить сервер в режиме standalone 2. нормально его shutdown-ить ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 09.09.2004, 15:11 |
|
||
|
Локальный MySQL
|
|||
|---|---|---|---|
|
#18+
внутренний сервер - это типа не надо вообще сервер MySQL в систему устанавливать??? Насколько я понимаю, да. У меня в книге про енто нанисано, но сам еще не юзал. Для корабля, который не знает куда плыть, нет попутного ветра... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 09.09.2004, 18:19 |
|
||
|
|

start [/forum/topic.php?fid=47&msg=32688346&tid=1854824]: |
0ms |
get settings: |
11ms |
get forum list: |
17ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
215ms |
get topic data: |
10ms |
get forum data: |
3ms |
get page messages: |
58ms |
get tp. blocked users: |
2ms |
| others: | 235ms |
| total: | 559ms |

| 0 / 0 |
