Originally Posted by
charitosha
cat etc/hosts | grep localhost
cat: etc/hosts: No such file or directory
don't use cat + grep.
More efficient to use
Code:
grep localhost /etc/hosts
cat /etc/mysql/my.cnf | grep bind-address
bind-address = 127.0.0.1
not sure why that file/directory doesn't exist
and again:
Code:
grep "bind-address" /etc/mysql/my.cnf
Originally Posted by
charitosha
Code:
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON joomla.* TO 'joomla@localhost' IDENTIFIED BY 'password';
Testing your GRANT statement is a good step:
Code:
$ mysql -h 127.0.0.1 -u joomla -ppassword -e "show databases;"
or
Code:
$ mysql -h localhost -u joomla -ppassword -e "show databases;"
should work.
You should see the joomla db.
Have fun and Good Luck!
Bookmarks