lists.netmrg.net lists.netmrg.net
NetMRG discussion and support
 
FAQ :: Search :: Memberlist :: Usergroups :: Register
Profile :: Log in to check your private messages :: Log in

Error in mysql...newbee

 
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Support
Author Message
srinivassin
Beginner


Joined: 10 Feb 2005
Posts: 6

PostPosted: Thu Feb 10, 2005 3:07 pm    Post subject: Error in mysql...newbee Reply with quote

Hi, i m newbee to linux and netmrg...as per the installtion document i done everything...but when configureing mysql i got problem. i never ever used mysql before.
i created database netmrg
#mysqladmin create netmrg
after that i entered this command
#mysql -u root -p netmrg < share/netmrg.mysql
i get error msg like this :share/netmrg.mysql: No such file or directory.
can plz, explain why i get this error...eve i tryied with ; at the end of the command...becuase of this i get this error in browser.

Warning: mysql_connect(): Access denied for user: 'netmrguser@localhost' (Using password: YES) in /usr/local/var/www/netmrg/lib/database.php on line 33
DB_ERROR:: Cannot connect to the database server.

my os: centos3-3 (redhat clone0
mysql-server-3.23.58-2.3
plese help me...
Back to top
keb
Contributor


Joined: 09 Jul 2003
Posts: 44
Location: Camp Hill, PA, USA

PostPosted: Thu Feb 10, 2005 4:08 pm    Post subject: Re: Error in mysql...newbee Reply with quote

srinivassin wrote:
#mysql -u root -p netmrg < share/netmrg.mysql
i get error msg like this :share/netmrg.mysql: No such file or directory.


Did you install via RPM or source? Since you're using CentOS and we don't have RPMS built for that, I'll assume from source. In a source install, you can usually find this file at /usr/local/share/netmrg/db/netmrg.mysql

srinivassin wrote:
Warning: mysql_connect(): Access denied for user: 'netmrguser@localhost' (Using password: YES) in /usr/local/var/www/netmrg/lib/database.php on line 33
DB_ERROR:: Cannot connect to the database server.


One of the assumed steps is that users will change/set the password of the netmrg mysql user. You can do this via the mysql command line or via phpMyAdmin. Since you probably haven't set the password yet, you can remove the '-p' option from the mysql command that is failing.

-Kevin
Back to top
srinivassin
Beginner


Joined: 10 Feb 2005
Posts: 6

PostPosted: Fri Feb 18, 2005 12:48 pm    Post subject: thankz ... Reply with quote

hi, thank you very muc..its working now...i gave the full root of that file there without password...then its starts working..now...
Back to top
Display posts from previous:   
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Support All times are GMT
Page 1 of 1

 



smartBlue Style © 2002 Smartor
Powered by phpBB © 2001, 2002 phpBB Group