Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mysql problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
tommy_haaland
Guru
Guru


Joined: 04 Oct 2003
Posts: 320

PostPosted: Sun Feb 22, 2004 8:52 pm    Post subject: mysql problems Reply with quote

After emerging mysql, I ran the command /usr/bin/mysql_install_db , but that gave me the following error:
Code:
/usr/bin/mysql_install_db
mkdir: cannot create directory `/var/lib/mysql/mysql': Permission denied
chmod: failed to get attributes of `/var/lib/mysql/mysql': No such file or direc tory
mkdir: cannot create directory `/var/lib/mysql/test': Permission denied
chmod: failed to get attributes of `/var/lib/mysql/test': No such file or direct ory
Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Installing all prepared tables
Warning: One can only use the --user switch if running as root
ERROR: 1049  Unknown database 'mysql'
040222 21:48:47  Aborting
 
040222 21:48:47  /usr/sbin/mysqld: Shutdown Complete
 
Installation of grant tables failed!
 
Examine the logs in /var/lib/mysql for more information.
You can also try to start the mysqld daemon with:
/usr/sbin/mysqld --skip-grant &
You can use the command line tool
/usr/bin/mysql to connect to the mysql
database and look at the grant tables:
 
shell> /usr/bin/mysql -u root mysql
mysql> show tables
 
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /var/lib/mysql that may be helpful.
 
The latest information about MySQL is available on the web at
http://www.mysql.com
Please consult the MySQL manual section: 'Problems running mysql_install_db',
and the manual section that describes problems on your OS.
Another information source is the MySQL email archive.
Please check all of the above before mailing us!
And if you do mail us, you MUST use the /usr/bin/mysqlbug script!


The error logs in /var/log/mysql were empty
Back to top
View user's profile Send private message
odegard
Guru
Guru


Joined: 08 Mar 2003
Posts: 324
Location: Trondheim, NO

PostPosted: Sun Feb 22, 2004 8:55 pm    Post subject: Reply with quote

did you run the install script as root?
Back to top
View user's profile Send private message
tommy_haaland
Guru
Guru


Joined: 04 Oct 2003
Posts: 320

PostPosted: Sun Feb 22, 2004 10:09 pm    Post subject: Reply with quote

ahhh, no I didn't :oops:
But I got another problem, when I run /etc/init.d/mysql start , I get the following

* Could not get dependency info for "mysql"!
* Could not get dependency info for "mysql"!
* Starting mysqld... [ ok ]

What is the first two lines indicationg?
Back to top
View user's profile Send private message
odegard
Guru
Guru


Joined: 08 Mar 2003
Posts: 324
Location: Trondheim, NO

PostPosted: Mon Feb 23, 2004 10:39 pm    Post subject: Reply with quote

a quick search revealed the following post:
https://forums.gentoo.org/viewtopic.php?t=74727&highlight=dependency+info+mysql

run depscan.sh and it will solve your problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum