![]() ![]() |
||||||||||||||
![]() ![]() ![]() ![]() |
||||||||||||||
![]() |
![]() 4.12.4 Faire tourner MySQL sous Win32MySQL supports TCP/IP on all Win32 platforms and named pipes on NT. The default is to use named pipes for local connections on NT and TCP/IP for all other cases if the client has TCP/IP installed. The host name specifies which protocol is used:
You can force a MySQL client to use named pipes by specifying the
You can test whether or not MySQL is working by executing the following commands: C:\mysql\bin\mysqlshow C:\mysql\bin\mysqlshow -u root mysql C:\mysql\bin\mysqladmin version status proc C:\mysql\bin\mysql test
By default, MySQL-Win32 is configured to be installed in
`C:\mysql'. If you want to install MySQL elsewhere, install it
in `C:\mysql', then move the installation to where you want it. If you
do move MySQL, you must tell
With the registered version of MySQL, you can also create a
`C:\my.cnf' file that holds any default options for the
MySQL server. Copy the file `\mysql\my-example.cnf' to
`C:\my.cnf' and edit this to suit your setup. Note that you should
specify all paths with
If There are two versions of the MySQL command line tool:
If you want to use
The default privileges on Win32 give all local users full privileges
to all databases. To make MySQL more secure, you
should set a password for all users and remove the row in the
You should also add a password for the C:\mysql\bin\mysql mysql mysql> DELETE FROM user WHERE Host='localhost' AND User=''; mysql> QUIT C:\mysql\bin\mysqladmin reload C:\mysql\bin\mysqladmin -u root password your_password
After you've set the password, if you want to take down the mysqladmin --user=root --password=your_password shutdown |