Jump to content

Problems starting MySQL


Nylex

Recommended Posts

I\'ve installed MySQL from source (version 4.0.12 and I\'m using Red Hat 8.0). Am I supposed to start MySQL using ./mysql user=mysql (or root)? I get command not found errors if I just try # mysql or # mysqld. When I do use ./mysql ..., it gives the following error message: ERROR 2002: Can\'t connect to local MySQL server through socket \'/tmp/mysql.sock\' (2)

 

Can anyone help? Thanks.

Link to comment
https://forums.phpfreaks.com/topic/354-problems-starting-mysql/
Share on other sites

It came up with the same error when I tried ./mysqladmin ping. I then did ./mysqld_safe --user=mysql and then ./mysqladmin again:

 

./mysqladmin: connect to server at \'localhost\' failed

error: \'Access denied for user: \'root@localhost\' (Using password: NO)\'

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/354-problems-starting-mysql/#findComment-1160
Share on other sites

no problem. if you do not want to type -p everytime, open the mysql configuration file and under the heading for the binary, [mysql] for example, put a line under there that simply says \"password.\" now anytime you use mysql it will automatically prompt for a password. no switches needed.

Link to comment
https://forums.phpfreaks.com/topic/354-problems-starting-mysql/#findComment-1165
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.