mysql version
I would like to know the version mysql in my server , I use phpinfo.php to check the version .
the following is the result mysql ===== MySQL Support enabled Active Persistent Links 0 Active Links 0 Client API version 3.23.49 MYSQL_MODULE_TYPE builtin MYSQL_SOCKET /tmp/mysql.sock MYSQL_INCLUDE no value MYSQL_LIBS no value does it mean the mysql server version is 3.23.49 ? or it only a client version ? Thanks. |
If you use rpm based linux
rpm -qi mysql You can find Version : 5.0.77 |
My MySQL version and the client api version are same on phpinfo.
|
Hi,
Open a mysql session from terminal: Code:
mysql -uroot -p Code:
Welcome to the MySQL monitor. Commands end with ; or \g. Eric |
Quote:
|
Quote:
#mysql -uroot -p Enter password: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib /mysql/mysql.sock' (2) |
Quote:
|
Hello,
Have you not set a password for the MySQL root user? Try without the -p option, like this: Code:
mysql -uroot Code:
mysql> I advise you to set a password for the MySQL root user if your server is a production server or accessible from the outside. Of course if you already have applications (PHPMyAdmin or so) in place you'll have to change their configuration accordingly if you set a password. A password for MySQL (if not set before) can be set using: Code:
mysqladmin -u root password YOURPASSWORD Eric |
Can you check your mysql process is running
ps aux |grep mysql Seem like it is not running. So that you cannot connect with mysql client |
Hi,
after entering the mysql console, try this: Code:
mysql> select version(); |
All times are GMT -5. The time now is 03:32 AM. |