LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-01-2002, 08:01 AM   #1
Luc
Member
 
Registered: Oct 2002
Distribution: RedHat Linux 8.0
Posts: 37

Rep: Reputation: 15
mysql


W4F-Server:/usr/bin # mysql_setpermission
Password for user to connect to MySQL:
install_driver(mysql) failed: Can't load '/usr/lib/perl5/site_perl/5.6.0/i586-linux/auto/DBD/mysql/mysql.so' for module DBD::mysql: libmysqlclient.so.10: cannot load shared object file: No such file or directory at /usr/lib/perl5/5.6.0/i586-linux/DynaLoader.pm line 200, <STDIN> line 1.
at (eval 7) line 3
Compilation failed in require at (eval 7) line 3, <STDIN> line 1.
Perhaps a required shared library or dll isn't installed where expected
at /usr/bin/mysql_setpermission line 65



what is this?
 
Old 11-01-2002, 08:14 AM   #2
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
You need to have perl-DBI and perl-DBD-MySQL installed in order to use this functionality - like documented in the MySQL installation file ...

Check http://www.mysql.com/doc/en/DBI_with_DBD.html for more information!
 
Old 11-01-2002, 11:07 AM   #3
Luc
Member
 
Registered: Oct 2002
Distribution: RedHat Linux 8.0
Posts: 37

Original Poster
Rep: Reputation: 15
ok thanks.
 
Old 11-01-2002, 10:19 PM   #4
syzuhdi
LQ Newbie
 
Registered: May 2002
Location: Sanglang,Kedah,Malaysia
Distribution: Mandrake
Posts: 28

Rep: Reputation: 15
MySQL Problem on Redhat 8.0

I need help...

I have create a user

GRANT SELECT,UPDATE,DELETE,INSERT ON DB.* TO user1@'%' IDENTIFIED BY 'passuser'

But when i try to connect it :

mysql -h 172.16.1.222 -u user1 -ppassuser


error accur :
ERROR 1045: Access denied for user: 'user1@comserver' (Using password: YES)

When i try this at Mandrake 9.0 everything is OK...
why???
 
Old 11-01-2002, 10:49 PM   #5
ryandelany
Member
 
Registered: Dec 2001
Location: Orange County, CA
Distribution: RedHat 7.2, 7.3, 8.0
Posts: 66

Rep: Reputation: 15
Try logging in the first time with this command:

mysql -h 172.16.1.222 -u user1 -p

then quit mysql and try the following, and see if it works:

mysql -h 172.16.1.222 -u user1 -ppassuser

I guess you have to login once interactively, and then you can enter from the command line after that...just a guess though.

Ryan
 
Old 11-02-2002, 10:31 AM   #6
Luc
Member
 
Registered: Oct 2002
Distribution: RedHat Linux 8.0
Posts: 37

Original Poster
Rep: Reputation: 15
Ok. Mysql service is now online. But how do I start now?

Server: localhost
user: mysql?
password: ?

How to create users for mysql?
 
Old 11-02-2002, 12:12 PM   #7
Luc
Member
 
Registered: Oct 2002
Distribution: RedHat Linux 8.0
Posts: 37

Original Poster
Rep: Reputation: 15
Yea! i gotit. Thanks for your help
 
Old 11-06-2002, 12:16 AM   #8
syzuhdi
LQ Newbie
 
Registered: May 2002
Location: Sanglang,Kedah,Malaysia
Distribution: Mandrake
Posts: 28

Rep: Reputation: 15
I still have the same problem
 
Old 11-06-2002, 12:18 AM   #9
syzuhdi
LQ Newbie
 
Registered: May 2002
Location: Sanglang,Kedah,Malaysia
Distribution: Mandrake
Posts: 28

Rep: Reputation: 15
Unhappy

Luc..
How u create a user for MySQL???
 
Old 11-06-2002, 12:25 AM   #10
mcujino
LQ Newbie
 
Registered: Apr 2002
Location: tel aviv Israel
Distribution: SuSE 7.3
Posts: 20

Rep: Reputation: 0
If you want to create a user called XXX with a password YYY ,with privileges AAA BBB on the tables T1 and T2

GRANT AAA,BBB
ON dbase_name.T1,dbase_name.T2
TO XXX@host_name
IDENTIFIED BY "YYY";
 
Old 11-06-2002, 12:34 AM   #11
syzuhdi
LQ Newbie
 
Registered: May 2002
Location: Sanglang,Kedah,Malaysia
Distribution: Mandrake
Posts: 28

Rep: Reputation: 15
I have create a user

GRANT SELECT,UPDATE,DELETE,INSERT ON DB.* TO user1@'%' IDENTIFIED BY 'passuser'

But when i try to connect it :

mysql -h 172.16.1.222 -u user1 -ppassuser


error accur :
ERROR 1045: Access denied for user: 'user1@comserver' (Using password: YES)

When i try this at Mandrake 9.0 everything is OK...
why???
 
Old 11-06-2002, 11:24 AM   #12
Luc
Member
 
Registered: Oct 2002
Distribution: RedHat Linux 8.0
Posts: 37

Original Poster
Rep: Reputation: 15
How to install mysql:

Download the following file:
ftp://filepile.tiscali.de/mirror/mys...3.23.52.tar.gz

create the dir /usr/local/src/lamps

then do:

cd /usr/local/src/lamps
for i in `ls *.gz`; do tar zxf $i; done;

cd /usr/local/src/lamps/mysql-3.23.52/
./configure --prefix=/usr/local/mysql/3.23.52 \
--localstatedir=/home/mysql/data
make
make install
ln -s /usr/local/mysql/3.23.52 /usr/local/mysql/current

mkdir /home/mysql /home/mysql/data
scripts/mysql_install_db
/usr/local/mysql/current/bin/safe_mysqld &
/usr/local/mysql/current/bin/mysqladmin -u root password 'xxxxxx'

if this doesnt work try:
/usr/sbin/adduser mysql
chown -R mysql:mysql /home/mysql
/usr/local/mysql/current/bin/safe_mysqld &
/usr/local/mysql/current/bin/mysqladmin -u root password 'geheim'


cp support-files/mysql.server /etc/rc.d/init.d
chmod 744 /etc/rc.d/init.d/mysql.server
cd /etc/rc.d/rc2.d
ln -s ../init.d/mysql.server S20mysql.server
ln -s ../init.d/mysql.server K20mysql.server
cd /etc/rc.d/rc3.d
ln -s ../init.d/mysql.server S20mysql.server
ln -s ../init.d/mysql.server K20mysql.server

ln -s /usr/local/mysql/current/bin/mysql \
/usr/local/bin/mysql
ln -s /usr/local/mysql/current/bin/mysqladmin \
/usr/local/bin/mysqladmin
ln -s /usr/local/mysql/current/bin/mysqldump \
/usr/local/bin/mysqldump
ln -s /usr/local/mysql/current/bin/mysqlshow \
/usr/local/bin/mysqlshow


then mysql should work...
 
Old 11-07-2002, 09:35 AM   #13
esael
Member
 
Registered: Jul 2002
Posts: 109

Rep: Reputation: 15
syzuhdi

Try using mysqladmin to create user.

I think to login you need to use mysqladmin to create user accoutn

Grant only gives the user permission to access the database but not administration.

I may be wrong.

Let me know if this works.

Newbie too.
 
Old 11-08-2002, 12:09 AM   #14
syzuhdi
LQ Newbie
 
Registered: May 2002
Location: Sanglang,Kedah,Malaysia
Distribution: Mandrake
Posts: 28

Rep: Reputation: 15
esael...
How to use mysqladmin...please give mesome examples..
Thanx
 
Old 11-08-2002, 04:52 AM   #15
esael
Member
 
Registered: Jul 2002
Posts: 109

Rep: Reputation: 15
Syzuhdi,

Sorry wrong info. I tried your method

GRANT SELECT,UPDATE,DELETE,INSERT ON DB.* TO user1@'%' IDENTIFIED BY 'passuser'

But when i try to connect it :

mysql -h 172.16.1.222 -u user1 -ppassuser

and it worked for me.

How abt try granting all privileges.... did you try flush privileges?
 
  


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
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. NoviceW Linux - Networking 17 09-17-2014 02:13 PM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock welery Linux - Software 19 03-06-2014 07:19 AM
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. suziecorbett Linux - Software 8 10-09-2008 01:52 AM
Problems with MySQL on SuSE: Can't Connect (/var/lib/mysql/mysql.sock) neocookie Linux - Software 8 02-07-2008 11:48 PM
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


All times are GMT -5. The time now is 06:59 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration