LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 06-24-2006, 02:03 AM   #1
natewlew
Member
 
Registered: Jan 2006
Location: USA
Distribution: Any distro I can get my hands on!
Posts: 162

Rep: Reputation: 30
MySql doesn't seem to work right?


I followed this guide at: The perfect suse setup and for some reason I can't add a user to a database. I installed ispconfig and I can't login. I think something is wrong with my database.

Here is what happens when I try to add a user to a database:

Quote:
# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 9 to server version: 5.0.18

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> CREATE DATABASE ipconfig03;

mysql> use ipconfig03;
Database changed
mysql> show tables;
Empty set (0.00 sec)

mysql> GRANT ALL PRIVILEGES ON *.* TO 'myuser'localhost'
'> IDENTIFIED BY 'mypass' WITH GRANT OPTION;
'> GRANT ALL PRIVILEGES ON *.* TO 'myuser'
'> IDENTIFIED BY 'mypass' WITH GRANT OPTION;
'>
'>
'> Aborted
Then I have to hit Ctrl-C.

After I installed ispconfig I ran:

Quote:
mysql> SHOW TABLES;
Empty set (0.00 sec)
I don't know what is going on?
 
Old 06-24-2006, 02:12 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
You typically log on to mysql like this:

Quote:
mysql -uSOME_NON_ROOT_USER -pPASSWORD MYDATABASE
You then need to:
1. "create database"
<= This creates the database
You can also do it with "mysqladmin"
2. "create table"
<= This is the step it sounds like you were missing
3. "grant ... privileges"
<= You can do this to set permissions; it also lets
you create new mySQL users on-the-fly

Please go back to the instructions - it sounds like maybe you missed the "create table" part.

'Hope that helps .. PSM
 
Old 06-24-2006, 03:32 PM   #3
natewlew
Member
 
Registered: Jan 2006
Location: USA
Distribution: Any distro I can get my hands on!
Posts: 162

Original Poster
Rep: Reputation: 30
I thought Ispconfig would create tables if I gave it a username and password.

I had Solaris 10 running and all I had to do was create a database and then:

Quote:
shell> mysql --user=root mysql
mysql> GRANT ALL PRIVILEGES ON *.* TO 'monty'@'localhost'
-> IDENTIFIED BY 'some_pass' WITH GRANT OPTION;
mysql> GRANT ALL PRIVILEGES ON *.* TO 'monty'@'%'
-> IDENTIFIED BY 'some_pass' WITH GRANT OPTION;

Then I could install PhpBB?

Last edited by natewlew; 06-24-2006 at 03:45 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleted the mysql db files from /var/lib/mysql and reinstalling doesn't work! Frostblade Linux - Software 1 05-24-2006 10:16 AM
why my mysql don't work? kaixiang Linux - Newbie 7 05-05-2006 02:23 AM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM
mysql does not work karthic Linux - Enterprise 4 04-08-2005 05:21 PM
mysql wouldn't work :s JanDeMan Linux - Newbie 2 04-19-2004 05:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 02:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration