LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-17-2006, 04:46 AM   #1
alsharifhoussam
Member
 
Registered: Apr 2005
Distribution: Fedora 14
Posts: 109

Rep: Reputation: 15
mysql problem


Hello all,
well I have installed MYSQL and when I lunch it, it waits me to enter a password, but when I install it, I didnt enter a password, so that prompt shouldn't be included , so what should I do?
thanks
 
Old 01-17-2006, 05:51 AM   #2
guedellas
Member
 
Registered: Dec 2005
Location: Espaņa
Distribution: Fedora Core 8 + Debian 4.0 + Vista
Posts: 61

Rep: Reputation: 15
It's a normal behavior of mysql (as far as I know)

Type in the shell:

$mysql -u root -p
Enter password: [just hit enter]
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8 to server version: 4.0.20-log

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

mysql> SET PASSWORD FOR root@localhost=password('newPassword');

(-u to specify the user and -p to specify you want to input a pwd)
Already in the mysql prompt you can set your password with the command mentioned above.

If you don't want to specify user and password each time you execute mysql, you can save your preferences at ~/.my.conf, i.e.:
$mysql -u myUser -p myPwd
will be the same that writing in your my.conf the following

Code:
[client]
host=localhost
user=myUser
password=myPwd

Cheers!!
 
Old 01-18-2006, 12:45 PM   #3
alsharifhoussam
Member
 
Registered: Apr 2005
Distribution: Fedora 14
Posts: 109

Original Poster
Rep: Reputation: 15
mysql problem

but when i install it , I didn't supply any password
 
Old 01-18-2006, 01:23 PM   #4
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
assuming you installed it as root..
are you logging in as root? or as another user.. if you are logging in as another user you have to add the user info to the user db in mysql using the root account first..

also did you run the
Code:
mysql_install_db
mysqladmin -u root password 'password'
after installing?

Last edited by xhi; 01-18-2006 at 01:24 PM.
 
Old 01-18-2006, 01:34 PM   #5
guedellas
Member
 
Registered: Dec 2005
Location: Espaņa
Distribution: Fedora Core 8 + Debian 4.0 + Vista
Posts: 61

Rep: Reputation: 15
Quote:
Originally Posted by alsharifhoussam
but when i install it , I didn't supply any password
yes, but as far as you have to access mysql using user and password, the default installation provides you with a blank default password which I [languaje false friend]hardly[/language false friend] STRONGLY encourage you to change.
It is a normal behavior

Edited: sorry people, I only read english not speak it. For now on, I'll be sticked to an on-line dictionary to check the sense of my posts. I cannot believe that only a word changed all the meaning of my sentence. Sorry

Last edited by guedellas; 01-19-2006 at 02:06 AM.
 
Old 01-18-2006, 02:38 PM   #6
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
Quote:
the default installation provides you with a blank default password which I hardly encourage you to change.
leaving the password blank is a normal behavior?

then why does the Mysql documentation suggest setting the root password immediately after install.
 
Old 01-18-2006, 05:02 PM   #7
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
Quote:
Originally Posted by xhi
leaving the password blank is a normal behavior?

then why does the Mysql documentation suggest setting the root password immediately after install.
Because the Mysql documentation also knows that it's a Bad Thing to leave the server running with a blank root password.

Last edited by Hko; 01-18-2006 at 05:03 PM.
 
Old 01-18-2006, 05:06 PM   #8
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
Quote:
Originally Posted by guedellas
[...]the default installation provides you with a blank default password which I hardly encourage you to change.
I suppose you didn't really mean to say "hardly" here.
("hardly" in english means "apenas" in spanish)
 
Old 01-18-2006, 05:24 PM   #9
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
Quote:
Originally Posted by Hko
Because the Mysql documentation also knows that it's a Bad Thing to leave the server running with a blank root password.
yes i understood that.. i was just stressing it for effect.

the earlier post makes more sense if guedellas didnot mean to say hardly.. as that did not make any sense..
 
Old 01-19-2006, 11:03 AM   #10
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
Quote:
Originally Posted by xhi
the earlier post makes more sense if guedellas didnot mean to say hardly.. as that did not make any sense..
Or guedillas was just a bit sarcastic for effect.
 
Old 01-19-2006, 12:33 PM   #11
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
yes.. hmm..

time to ban sarcasm..

 
Old 01-20-2006, 02:17 AM   #12
guedellas
Member
 
Registered: Dec 2005
Location: Espaņa
Distribution: Fedora Core 8 + Debian 4.0 + Vista
Posts: 61

Rep: Reputation: 15
No sarcasm at all, people, just some ineptitude with english and bad luck with a false friend. (Thanks Hko for this language tip ). Error edited and corrected.

Be positive, boy, I'm learning some GNU/linux and also improving my english...

My apologies again.

PS: @alsharifhoussam change your password ASAP
 
Old 01-20-2006, 04:23 AM   #13
alsharifhoussam
Member
 
Registered: Apr 2005
Distribution: Fedora 14
Posts: 109

Original Poster
Rep: Reputation: 15
mysql problem

thanks for ur help
guedellas I have changed my password and things gone well now..
but this post doesnt deserve all that fight about langauge right?!
 
Old 01-20-2006, 08:24 AM   #14
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
Quote:
Originally Posted by guedellas
No sarcasm at all, people, just some ineptitude with english and bad luck with a false friend. (Thanks Hko for this language tip ). Error edited and corrected.

Be positive, boy, I'm learning some GNU/linux and also improving my english...

My apologies again.

PS: @alsharifhoussam change your password ASAP
I think there are no apologies really needed.. just a simple misunderstanding.. and also I was referring to banning sarcasm for myself.. once again, I failed in using it.. lol

good luck with english.

-x
 
  


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
Bugzilla - MySQL - perl - DBD::mysql install problem Runningonair Linux - Software 8 10-12-2007 12:42 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
php-mysql dependancy problem after nitemare mysql upgrade. RHEL4 andrewc Red Hat 1 01-03-2006 04:16 PM
MySQL server problem after linking (mysql.sock) ewijaya Linux - General 4 01-19-2004 09:46 AM
MySQL mysql-3.23.56-1.9, rpm install problem jacsmith510 Linux - Newbie 3 09-19-2003 02:02 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:15 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