LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-04-2005, 10:17 PM   #1
hirts123
Member
 
Registered: Jan 2005
Location: U.S.A
Distribution: Slackware, Windows
Posts: 84

Rep: Reputation: 15
my sql install


i'm a total newb to mysql but i really want to run drupal on my newly acquired web server,
but i keep getting a wrong password error when trying to log in as a user i just made for the mysql database , when it should'nt have a password.? is there some kind of default?
 
Old 09-04-2005, 10:30 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

I took a brief look at the drupal.org site. Per the installation instructions, you should have done this:

Quote:
mysqladmin -u dba_user -p create drupal
MySQL will prompt for the 'dba_user' database password and then create
the initial database files. Next you must login and set the access
database rights:

mysql -u dba_user -p

Again, you will be asked for the 'dba_user' database password.
At the MySQL prompt, enter following command:

GRANT ALL PRIVILEGES ON drupal.*
TO nobody@localhost IDENTIFIED BY 'password';

where

'drupal' is the name of your database
'nobody@localhost' is the username of your webserver MySQL account
'password' is the password required to log in as the MySQL user [/quote]

Sooooo...

What happens when you try:
Quote:
mysql -uYOUR_USERNAME -pYOUR_PASSWORD drupal

Last edited by paulsm4; 09-04-2005 at 11:00 PM.
 
Old 09-04-2005, 10:33 PM   #3
hirts123
Member
 
Registered: Jan 2005
Location: U.S.A
Distribution: Slackware, Windows
Posts: 84

Original Poster
Rep: Reputation: 15
please give me a tip

after i install mysql with pkgtool i run the command: mysql -u root -p create drupal
since the database is going to be for drupal. The guide that i'm using says that it should prompt me for a password but it never does ?
 
Old 09-04-2005, 10:40 PM   #4
hirts123
Member
 
Registered: Jan 2005
Location: U.S.A
Distribution: Slackware, Windows
Posts: 84

Original Poster
Rep: Reputation: 15
i reinstalled mysql :::

root@chaos:~# mysqladmin -u dba_user -p create drupal
Enter password:
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysql/mysql.sock' exists!
 
Old 09-04-2005, 10:44 PM   #5
hirts123
Member
 
Registered: Jan 2005
Location: U.S.A
Distribution: Slackware, Windows
Posts: 84

Original Poster
Rep: Reputation: 15
ok

i figured out the question i need to ask is how do i make a mysql user with CREATE AND GRANT
priviledges
 
Old 09-04-2005, 10:55 PM   #6
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
The "grant" command both creates the user (if it doesn't already exist) and grants the privileges.

You can always change privileges later with "alter user".

The (optional) "identified by" clause sets the password. If you typed the example verbatim, you assigned the user a password of "password".

PS:
Oh yeah - if you didn't already guess, this error is Bad:

error: 'Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)'

As root, try:
Quote:
/etc/init.d/mysql start

Last edited by paulsm4; 09-04-2005 at 10:59 PM.
 
Old 09-04-2005, 11:15 PM   #7
hirts123
Member
 
Registered: Jan 2005
Location: U.S.A
Distribution: Slackware, Windows
Posts: 84

Original Poster
Rep: Reputation: 15
thank you

thank you so much for responding to my thread please don't adandon this thread though i'll still probably need help
 
Old 09-04-2005, 11:30 PM   #8
hirts123
Member
 
Registered: Jan 2005
Location: U.S.A
Distribution: Slackware, Windows
Posts: 84

Original Poster
Rep: Reputation: 15
yo

root@chaos:~# /etc/init.d/mysql start
-bash: /etc/init.d/mysql: No such file or directory
 
Old 09-04-2005, 11:38 PM   #9
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
su - root
cd /etc
find . -name "mysql*" -print
<= I GOT THESE RESULTS:
./mysqlaccess.conf
./init.d/mysql
./logrotate.d/mysql

Since your mysql start script isn't in /etc/init.d, my next guess would be it's in /etc/rc.d/init.d. Either way, the above "find" command (note the quotes (") and the asterisk (*)) should locate it for you.

Last edited by paulsm4; 09-04-2005 at 11:39 PM.
 
Old 09-04-2005, 11:42 PM   #10
hirts123
Member
 
Registered: Jan 2005
Location: U.S.A
Distribution: Slackware, Windows
Posts: 84

Original Poster
Rep: Reputation: 15
thanks i'll try it right now
 
Old 09-04-2005, 11:56 PM   #11
hirts123
Member
 
Registered: Jan 2005
Location: U.S.A
Distribution: Slackware, Windows
Posts: 84

Original Poster
Rep: Reputation: 15


it just returns me back tot he prompt??


what now

ami in serious shit this after installing mysql via pkgtool on slackware 10
 
Old 09-05-2005, 12:04 AM   #12
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
find / -name "mysql*" -print

PS:
Feel free to contact me directly by e-mail, if you don't want to clutter this thread with extraneous "noise". As I see it, the things we need to do are:

1. Make sure mysql is up and running
2. Create your "dba user" (if you haven't already)
3. Create your database (f you haven't already)
4. Finish the basic install

Last edited by paulsm4; 09-05-2005 at 12:19 AM.
 
Old 09-05-2005, 12:21 AM   #13
hirts123
Member
 
Registered: Jan 2005
Location: U.S.A
Distribution: Slackware, Windows
Posts: 84

Original Poster
Rep: Reputation: 15
i do'nt think it's their

root@chaos:/etc# find / -name "mysql*" -print < /home/jeffrey/
/var/log/packages/mysql-4.1.7-i486-1jim
/var/log/removed_packages/mysql-4.0.20-i486-1
/var/log/removed_packages/mysql-4.1.7-i486-1jim
/var/log/removed_scripts/mysql-4.0.20-i486-1
/var/log/removed_scripts/mysql-4.1.7-i486-1jim
/var/log/scripts/mysql-4.1.7-i486-1jim
/var/run/mysql
/var/lib/mysql
/usr/bin/mysql
/usr/bin/mysqladmin
/usr/bin/mysqlcheck
/usr/bin/mysqlshow
/usr/bin/mysqldump
/usr/bin/mysqlimport
/usr/bin/mysqltest
/usr/bin/mysqlbinlog
/usr/bin/mysqlmanagerc
/usr/bin/mysqlmanager-pwgen
/usr/bin/mysql_waitpid
/usr/bin/mysql_tzinfo_to_sql
/usr/bin/mysqld_safe
/usr/bin/mysql_install_db
/usr/bin/mysql_config
/usr/bin/mysql_fix_privilege_tables
/usr/bin/mysql_fix_extensions
/usr/bin/mysql_setpermission
/usr/bin/mysql_secure_installation
/usr/bin/mysql_zap
/usr/bin/mysqlaccess
/usr/bin/mysqlbug
/usr/bin/mysql_convert_table_format
/usr/bin/mysql_find_rows
/usr/bin/mysqlhotcopy
/usr/bin/mysqldumpslow
/usr/bin/mysql_explain_log
/usr/bin/mysql_tableinfo
/usr/bin/mysqld_multi
/usr/bin/mysql_create_system_tables
/usr/doc/mysql-4.1.7
/usr/doc/mysql-4.1.7/Docs/mysqld_error.txt
/usr/doc/samba-3.0.4/examples/pdb/mysql
/usr/doc/samba-3.0.4/examples/pdb/mysql/mysql.dump
/usr/lib/mysql
/usr/lib/perl5/site_perl/5.8.4/i486-linux/DBD/mysql
/usr/lib/perl5/site_perl/5.8.4/i486-linux/DBD/mysql.pm
/usr/lib/perl5/site_perl/5.8.4/i486-linux/auto/DBD/mysql
/usr/lib/perl5/site_perl/5.8.4/i486-linux/auto/DBD/mysql/mysql.bs
/usr/lib/perl5/site_perl/5.8.4/i486-linux/auto/DBD/mysql/mysql.so
/usr/lib/perl5/site_perl/5.8.4/i486-linux/Bundle/DBD/mysql.pm
/usr/lib/php/DB/mysqli.php
/usr/lib/php/DB/mysql.php
/usr/lib/php/extensions/mysql.so
/usr/lib/qt-3.3.2/plugins/src/sqldrivers/mysql
/usr/lib/qt-3.3.2/plugins/src/sqldrivers/mysql/mysql.pro
/usr/man/man1/mysql.1.gz
/usr/man/man1/mysqladmin.1.gz
/usr/man/man1/mysqld.1.gz
/usr/man/man1/mysqld_multi.1.gz
/usr/man/man1/mysqld_safe.1.gz
/usr/man/man1/mysqlshow.1.gz
/usr/man/man1/mysqldump.1.gz
/usr/man/man1/mysql_zap.1.gz
/usr/man/man1/mysql_fix_privilege_tables.1.gz
/usr/man/man1/mysqlaccess.1.gz
/usr/info/mysql.info.gz
/usr/share/mysql
/usr/share/mysql/mysql_fix_privilege_tables.sql
/usr/share/mysql/mysql-log-rotate
/usr/share/mysql/mysql-4.1.7.spec
/usr/share/mysql/mysql.server
/usr/share/vim/vim63/syntax/mysql.vim
/usr/include/mysql
/usr/include/mysql/mysql.h
/usr/include/mysql/mysql_com.h
/usr/include/mysql/mysqld_error.h
/usr/include/mysql/mysql_embed.h
/usr/include/mysql/mysql_time.h
/usr/include/mysql/mysql_version.h
/usr/libexec/mysqld
/home/jeffrey/mysql-standard-4.1.14-pc-linux-gnu-i686.tar.gz
/root/mysql-4.1.7-i486-1jim.tgz
/opt/kde/share/apps/quanta/dtep/php/mysql.tag




should i be looking for /var/run/mysql



root@chaos:/etc# /etc/rc.d/rc.mysqld start
root@chaos:/etc# Starting mysqld daemon with databases from /var/lib/mysql
STOPPING server from pid file /var/run/mysql/mysql.pid
050904 22:23:31 mysqld ended




does this tell you anything ?
 
Old 09-05-2005, 01:44 PM   #14
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
1. This error shows that mysql isn't started:
Quote:
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysql/mysql.sock' exists!
2. This shows that it apparently won't start, even manually:
Quote:
root@chaos:/etc# /etc/rc.d/rc.mysqld start
root@chaos:/etc# Starting mysqld daemon with databases from /var/lib/mysql
STOPPING server from pid file /var/run/mysql/mysql.pid
050904 22:23:31 mysqld ended
3. As you already know, this strongly suggests that the mysql install failed. Here is a link to the mysql install page:

http://dev.mysql.com/doc/mysql/en/linux-rpm.html

4. I'm also concerned that I don't see a mysql log file
EXAMPLE: /var/lib/mysql/mysqld.log

Speculation: maybe there's a permissions error?
Maybe the *same* permissions error is both preventing your
log file from being written as is preventing mysql itself from
coming up?

Any in case, please feel free to contact me via e-mail, and/or post to LQ, however you see fit.

Your .. PSM
 
Old 09-06-2005, 11:19 AM   #15
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
Moving to Linux - Software
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
cannot install SQL killercrazyeyes Linux - Software 14 10-05-2005 10:28 AM
Migrating from MS-SQL server to My-SQL emailssent Linux - Networking 2 02-07-2005 02:20 PM
Which SQL is suitable for EMbedded SQL on C? hk_michael Programming 4 01-10-2005 05:07 PM
minimum package install for sql box kodiakmook Linux - General 1 06-26-2003 05:25 PM
Better SQL ???? m1ke Linux - General 7 12-14-2001 09:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:26 PM.

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