Quote:
Originally Posted by jojanmpaul
Could you please help me why mysql -u root -p is not allowing me to get inside the mysql prompt. But mysql -u root -p --protocol tcp is allowing me the access.
|
There should be a line under section [mysqld] in your my.cnf file and it should be commented or not there, it is
If you uncomment the line or if it is not there so you put it in your my.cnf under the section [mysqld] then you restart the mysql, even you will not be able to connect to mysql using
Code:
mysql -u root -p --protocol tcp
Not listening on port TCP/IP can be a security enhancement, if all processes that need to connect to mysqld run on the same host.All interaction with mysqld must be made via Unix sockets or named pipes.
To start the mysql prompt using regular command, follow the solution of TenTenths.