Create the directory if it is not there:
Code:
sudo mkdir /var/run/mysqld/
touch the file to create it
Code:
sudo touch /var/run/mysqld/mysqld.sock
change the ownership of the folder and socket to the mysql user
Code:
sudo chown mysql /var/run/mysqld/
sudo chown mysql /var/run/mysqld/mysqld.sock
Showing posts with label mysql. Show all posts
Showing posts with label mysql. Show all posts
Thursday, June 26, 2008
Sunday, October 28, 2007
mysql grant privileges
GRANT ALL PRIVILEGES ON DATABASENAME.* TO 'USERNAME'@'HOST' identified by 'PASSWORD';
flush privileges;
flush privileges;
Subscribe to:
Posts (Atom)