Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

err 1045: Access denide for user 'root'

 
   Database Help (Home) -> mySQL RSS
Next:  10g clusterware causes reboots  
Author Message
IT

External


Since: Apr 14, 2009
Posts: 5



(Msg. 1) Posted: Tue Apr 14, 2009 9:26 am
Post subject: err 1045: Access denide for user 'root'
Archived from groups: comp>databases>mysql (more info?)

Hi,
I have script that trying dump my database. But always I got this error:
err 1045: Access denied for user 'root'@'localhost' (using password:
YES) when trying to connect.
I copied and run in terminal and when I tried from terminal everything
is Ok.

Here is that line from bacula-dir.conf file
BeforeJob ="/usr/bin/mysqldump -u root -h localhost --
password="myrootpassword" -C -Q -e -a databasename >/home/me/name.sql"

 >> Stay informed about: err 1045: Access denide for user 'root' 
Back to top
Login to vote
j.keßler

External


Since: Apr 14, 2009
Posts: 1



(Msg. 2) Posted: Tue Apr 14, 2009 10:26 am
Post subject: Re: err 1045: Access denide for user 'root' [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

IT wrote:
> In article , mail@bananas-
> playground.net says...
> IT wrote:
>>>> Hi,
>>>> I have script that trying dump my database. But always I got this error:
>>>> err 1045: Access denied for user 'root'@'localhost' (using password:
>>>> YES) when trying to connect.
>>>> I copied and run in terminal and when I tried from terminal everything
>>>> is Ok.
>>>>
>>>> Here is that line from bacula-dir.conf file
>>>> BeforeJob ="/usr/bin/mysqldump -u root -h localhost --
>>>> password="myrootpassword" -C -Q -e -a databasename >/home/me/name.sql"
> Hello,
>
> from where do you run this script ?
> Via Browser, Application ?
>
> It could be the "Host" setting. The root user could be configured to be only
> allowed to connect from localhost and not from any other PC over the network.
>
> j.keßler

> Hello,
> I run this from localhost. In both cases.
> In backup program I set schedule for backup file and need to dump
> database.
> Backup program is bacula, and in this case mysql database is on the
> server together with bacula.
Hello,

and what happens if you use the IP instaed of localhost ?

j.keßler
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknkkvQACgkQE++2Zdc7Etej5gCfQkkVrML7FSzugevuctY70fFB
pKcAn0FFwe/f1yLmLaGmVqnFJRu+ITCR
=LaJf
-----END PGP SIGNATURE-----

 >> Stay informed about: err 1045: Access denide for user 'root' 
Back to top
Login to vote
IT

External


Since: Apr 14, 2009
Posts: 5



(Msg. 3) Posted: Tue Apr 14, 2009 10:26 am
Post subject: Re: err 1045: Access denide for user 'root' [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article , mail@bananas-
playground.net says...
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> IT wrote:
> > In article , mail@bananas-
> > playground.net says...
> > IT wrote:
> >>>> Hi,
> >>>> I have script that trying dump my database. But always I got this error:
> >>>> err 1045: Access denied for user 'root'@'localhost' (using password:
> >>>> YES) when trying to connect.
> >>>> I copied and run in terminal and when I tried from terminal everything
> >>>> is Ok.
> >>>>
> >>>> Here is that line from bacula-dir.conf file
> >>>> BeforeJob ="/usr/bin/mysqldump -u root -h localhost --
> >>>> password="myrootpassword" -C -Q -e -a databasename >/home/me/name.sql"
> > Hello,
> >
> > from where do you run this script ?
> > Via Browser, Application ?
> >
> > It could be the "Host" setting. The root user could be configured to be only
> > allowed to connect from localhost and not from any other PC over the network.
> >
> > j.keßler
>
> > Hello,
> > I run this from localhost. In both cases.
> > In backup program I set schedule for backup file and need to dump
> > database.
> > Backup program is bacula, and in this case mysql database is on the
> > server together with bacula.
> Hello,
>
> and what happens if you use the IP instaed of localhost ?
>
> j.keßler
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAknkkvQACgkQE++2Zdc7Etej5gCfQkkVrML7FSzugevuctY70fFB
> pKcAn0FFwe/f1yLmLaGmVqnFJRu+ITCR
> =LaJf
> -----END PGP SIGNATURE-----

If I use IP then got error 1130: host 'IPaddress' is not allowed to
connect to this MySQL server when trying to connect
 >> Stay informed about: err 1045: Access denide for user 'root' 
Back to top
Login to vote
Kerstin Puschke

External


Since: Apr 14, 2009
Posts: 1



(Msg. 4) Posted: Tue Apr 14, 2009 11:25 am
Post subject: Re: err 1045: Access denide for user 'root' [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi,

IT wrote:
> Hi,
> I have script that trying dump my database. But always I got this error:
> err 1045: Access denied for user 'root'@'localhost' (using password:
> YES) when trying to connect.
> I copied and run in terminal and when I tried from terminal everything
> is Ok.
>
> Here is that line from bacula-dir.conf file
> BeforeJob ="/usr/bin/mysqldump -u root -h localhost --
> password="myrootpassword" -C -Q -e -a databasename >/home/me/name.sql"


Looks like the quotes are creating your problem: you are using
double-quotes for the outer quotes (begin and end of the whole
BeforeJob) and also for the inner quotes (begin and end of the password)
so that bacula reads only

BeforeJob ="/usr/bin/mysqldump -u root -h localhost --password="

and expects the BeforeJob directive to end with the =. mysqldump
connects with an empty password, which is rejected by mysql.

If you nest quotes, you have to use different quotes, for example:

BeforeJob ='/usr/bin/mysqldump -u root -h localhost
--password="myrootpassword" -C -Q -e -a databasename >/home/me/name.sql'

Since I am not familiar with bacula, I am not sure if this syntax is
correct, but I hope you get the idea.

Good luck,
Kerstin
 >> Stay informed about: err 1045: Access denide for user 'root' 
Back to top
Login to vote
Jerry Stuckle

External


Since: Aug 11, 2004
Posts: 3772



(Msg. 5) Posted: Tue Apr 14, 2009 3:08 pm
Post subject: Re: err 1045: Access denide for user 'root' [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

IT wrote:
> Hi,
> I have script that trying dump my database. But always I got this error:
> err 1045: Access denied for user 'root'@'localhost' (using password:
> YES) when trying to connect.
> I copied and run in terminal and when I tried from terminal everything
> is Ok.
>
> Here is that line from bacula-dir.conf file
> BeforeJob ="/usr/bin/mysqldump -u root -h localhost --
> password="myrootpassword" -C -Q -e -a databasename >/home/me/name.sql"

Can you connect to the database with the MySQL CLI using this userid and
password?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex RemoveThis @attglobal.net
==================
 >> Stay informed about: err 1045: Access denide for user 'root' 
Back to top
Login to vote
IT

External


Since: Apr 14, 2009
Posts: 5



(Msg. 6) Posted: Wed Apr 15, 2009 3:25 am
Post subject: Re: err 1045: Access denide for user 'root' [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article , k.puschke DeleteThis @fu-berlin.de
says...
>
> Hi,
>
> IT wrote:
> > Hi,
> > I have script that trying dump my database. But always I got this error:
> > err 1045: Access denied for user 'root'@'localhost' (using password:
> > YES) when trying to connect.
> > I copied and run in terminal and when I tried from terminal everything
> > is Ok.
> >
> > Here is that line from bacula-dir.conf file
> > BeforeJob ="/usr/bin/mysqldump -u root -h localhost --
> > password="myrootpassword" -C -Q -e -a databasename >/home/me/name.sql"
>
>
> Looks like the quotes are creating your problem: you are using
> double-quotes for the outer quotes (begin and end of the whole
> BeforeJob) and also for the inner quotes (begin and end of the password)
> so that bacula reads only
>
> BeforeJob ="/usr/bin/mysqldump -u root -h localhost --password="
>
> and expects the BeforeJob directive to end with the =. mysqldump
> connects with an empty password, which is rejected by mysql.
>
> If you nest quotes, you have to use different quotes, for example:
>
> BeforeJob ='/usr/bin/mysqldump -u root -h localhost
> --password="myrootpassword" -C -Q -e -a databasename >/home/me/name.sql'
>
> Since I am not familiar with bacula, I am not sure if this syntax is
> correct, but I hope you get the idea.
>
> Good luck,
> Kerstin
It's not problem with quotes. I used first "''" and then '""', but in
both cases the error is the same.
 >> Stay informed about: err 1045: Access denide for user 'root' 
Back to top
Login to vote
IT

External


Since: Apr 14, 2009
Posts: 5



(Msg. 7) Posted: Wed Apr 15, 2009 3:25 am
Post subject: Re: err 1045: Access denide for user 'root' [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article , jstucklex RemoveThis @attglobal.net
says...
>
> IT wrote:
> > Hi,
> > I have script that trying dump my database. But always I got this error:
> > err 1045: Access denied for user 'root'@'localhost' (using password:
> > YES) when trying to connect.
> > I copied and run in terminal and when I tried from terminal everything
> > is Ok.
> >
> > Here is that line from bacula-dir.conf file
> > BeforeJob ="/usr/bin/mysqldump -u root -h localhost --
> > password="myrootpassword" -C -Q -e -a databasename >/home/me/name.sql"
>
> Can you connect to the database with the MySQL CLI using this userid and
> password?


I was using different user with MySQL CLI.
Today I try witho 'roo't & Password for root but can't connect.
 >> Stay informed about: err 1045: Access denide for user 'root' 
Back to top
Login to vote
Jerry Stuckle

External


Since: Aug 11, 2004
Posts: 3772



(Msg. 8) Posted: Wed Apr 15, 2009 6:07 am
Post subject: Re: err 1045: Access denide for user 'root' [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

IT wrote:
> In article , jstucklex.RemoveThis@attglobal.net
> says...
>> IT wrote:
>>> Hi,
>>> I have script that trying dump my database. But always I got this error:
>>> err 1045: Access denied for user 'root'@'localhost' (using password:
>>> YES) when trying to connect.
>>> I copied and run in terminal and when I tried from terminal everything
>>> is Ok.
>>>
>>> Here is that line from bacula-dir.conf file
>>> BeforeJob ="/usr/bin/mysqldump -u root -h localhost --
>>> password="myrootpassword" -C -Q -e -a databasename >/home/me/name.sql"
>> Can you connect to the database with the MySQL CLI using this userid and
>> password?
>
>
> I was using different user with MySQL CLI.
> Today I try witho 'roo't & Password for root but can't connect.

Looks like you found your problem.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex.RemoveThis@attglobal.net
==================
 >> Stay informed about: err 1045: Access denide for user 'root' 
Back to top
Login to vote
IT

External


Since: Apr 14, 2009
Posts: 5



(Msg. 9) Posted: Wed Apr 15, 2009 9:25 am
Post subject: Re: err 1045: Access denide for user 'root' [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article , jstucklex.TakeThisOut@attglobal.net
says...
>
> IT wrote:
> > In article , jstucklex.TakeThisOut@attglobal.net
> > says...
> >> IT wrote:
> >>> Hi,
> >>> I have script that trying dump my database. But always I got this error:
> >>> err 1045: Access denied for user 'root'@'localhost' (using password:
> >>> YES) when trying to connect.
> >>> I copied and run in terminal and when I tried from terminal everything
> >>> is Ok.
> >>>
> >>> Here is that line from bacula-dir.conf file
> >>> BeforeJob ="/usr/bin/mysqldump -u root -h localhost --
> >>> password="myrootpassword" -C -Q -e -a databasename >/home/me/name.sql"
> >> Can you connect to the database with the MySQL CLI using this userid and
> >> password?
> >
> >
> > I was using different user with MySQL CLI.
> > Today I try witho 'roo't & Password for root but can't connect.
>
> Looks like you found your problem.

Yes, thanks to all.
 >> Stay informed about: err 1045: Access denide for user 'root' 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
login as user 'root' but do not have root privlages and my.. - Hi gang: I'm experiencing a problem with MySQL -- I updated MySQL from version 4.1.0 to 4.1.10 and now when I login as root it doesn't show all the databases I should have access to, nor it doesn't recognize me being logged in as root (via..

MySQL, MyODBC and ACCESS 2003 - Ok I have an interesting problem. I have written a database in Access to connect to our web shop and update prices etc from a supplier feed. It works almost perfectly! The prices are doubles, I am using ADO in access to connect via myodbc (with options....

preventing direct access to tables - how does one prevent someone from directly inserting into a table such that any inserts should be passed to a stored procedure e.g insert_data(....) i have read the manual on revoke, grant but couldn't grasp the idea.

Inside firewall access to outside firewall MySQL server - I have 2 Suse 9.1 boxes with similar configurations. I'm in the process of moving some PHP code from one server (192.168.0.100) to another (192.168.0.102). MySQL is running on each server, and the same PHP code can access its respective localhost..

Best way to issue hundreds of inserts/updates??? - Using mysql 4.0.23- What is the best way to execute several (hundreds of) inserts and updates? Rather than issuing tons of individual inserts and updates, can I send the strings to a text file and then have mysql do them all?? IE : query.txt insert..
   Database Help (Home) -> mySQL All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]