ERROR 1045 (28000): Access Denied For User 'root'@'localhost' (using Password: NO)
just five minutes before mysql was working fine... in directory /var/lib/mysql i renamed a database. now it is giving the following error...
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Please somebody help.... Im working in Fedora 8
View Complete Forum Thread with Replies
Sponsored Links:
Related Messages:
ERROR 1045 (28000): Access Denied For User 'root'@'localhost'
Using mySQL 4.1.22 on Linux, I got this error message suddenly this morning (it worked ok yesterday): --------- [root@server]# /usr/local/mysql/bin/mysql -u root -p Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) ---------- I created a '/root/root.sql' file: -------- SET PASSWORD FOR 'root'@'localhost' = PASSWORD('xxxxxx'); -------- And killed the process and restarted: -------- [root@server ~]# /usr/local/mysql/bin/mysqld_safe --init-file=/root/root.sql & [1] 2494 [root@server ~]# Starting mysqld daemon with databases from /usr/local/mysql/var -------- But I get the same error message :( In my '/usr/local/mysql/var/server.err' file there's no error message: -- 070220 07:03:40 mysqld started 070220 07:03:40 InnoDB: Started; log sequence number 0 3758734 /usr/local/mysql/libexec/mysqld: ready for connections. Version: '4.1.22' socket: '/tmp/mysql.sock' port: 3306 Source distribution ------- What am I doing wrong?
View Replies !
View Related
#1045 - Access Denied For User 'root'@'localhost' (using Password: NO)
I have successfully installed the following IIS ver 6 php ver 4.4.9 MYSQL ver 5.0.67 when i tested through command line i get no error and i am view the php pages on the browser without any hitch. In the beginning when i was trying to connect to MYSQL through simple php script i was getting an authentication error which i could resolve by using OLD_PASSWORD. Now during final stages , Now when i have installed phpMyAdmin ver 2.0.8.3and have also configured config.inc.php. There is persistent error i am getting which is something like MYSQL says #1045 - Access denied for user 'root'@'localhost' (using password: NO)
View Replies !
View Related
ERROR 1045: Access Denied For User: '"root"@localhost' (Using Password: YES)
I have been working on this for three days (about 16 hours) to no avail. I have root access on a dedicated server running whm/cpanel on Redhat 9. I have followed every instruction from mysql.com as well as every suggestion I've been able to find. These are the two errors I bounce between: ERROR 1045: Access denied for user: '"root"@localhost' (Using password: YES) and ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) I'm out of ideas.
View Replies !
View Related
Error: 'Access Denied For User: 'root@localhost' (Using Password: NO)'
I've installed MySQL 4.0.26 on OSX 10.3.9 client version using the standard darwin 7.9.0 PKG. Installation seemed to go fine but I can only access Mysql with urs/local/mysql/bin/mysql test To my knowledge I never sent a root or user password. When I come to try and set a password or create a database I am asked for my password. When I try and enter it the imput is frozen and the only keystroke that will work is 'enter' then I get a error message that tells me that it is the incorrect password. I have tried all of the different login and password reset commands I can find but to no avail.
View Replies !
View Related
Access Denied For User 'root'@'localhost' (using Password: YES)
I am trying to login to mysql using 'mysql -u root -p' with password.but iam getting this error "Access denied for user 'root'@'localhost' (using password: YES)". i have googled for this error and i saw that if i enter a wrong password i get this error.but i am 100% sure that the password is right because i used it in a sample program where i gave that password to connect to mysql.
View Replies !
View Related
ERROR 1045 (28000) Access Denied
ERROR 1045 (28000) Access denied Here is my problem: I can connect to mysql using root user and password. (both with phpMyAdmin and terminal command "shell>mysql -u root -p") When I try to connect with another user, this error appear: #1045: Access denied for user 'xxx'@'localhost' (using password: YES) In the mysql table "user" I see all users with encrypted password. Here's my conf: MySQL 4.1.13a on Mac OS X Server 10.4 I've also installed phpMyAdmin 2.6.4-pl4 and php 5.0.4.
View Replies !
View Related
Error: 'Access Denied For User 'root'@'localhost'
I've used mysql on an XP machine before, but only a little. I installed Fedora core 5 on this machine (i386) and have mysql 5.0 running. I understand that this is a common problem and I have been searching for a solution for a few days now. When I was configuring Fedora using this guide (FYI: I only installed what I needed), I used this command to set the root password (assuming that I was using 'root' as my password): mysqladmin -u root password root Then, I tried this command to login (as instructed by the guide I was following): mysqladmin -h localhost -u root password root This is where I got the error: mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user 'root'@'localhost' (using password: NO)' Now, I have tried many methods to fix this. I tried every method to reset the root password as instructed by the mysql documentation. I also installed Fedora core 5 on another hard drive at home to see if I would still get the same error and I did. I know that localhost is the correct host name and the mysql service was running while I was trying to login. I've read a lot of post here already and nothing has helped me.
View Replies !
View Related
Access Denied For User 'root@localhost'
I have installed MySQL and somehow have my forum running fine using it, however, I am attempting to install Photopost php software and I have put in the user name that I have been using. It all works fine up until it tries to create tables on the database (and maybe even a database, the error message isn't telling me much). I have tried to log into mySQL but keep getting the error: ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO) The error I get from the install page (of Photopost) is: Could not connect to or create the PhotoPost Classifieds database. Be sure your user has permissions to CREATE or create a blank table before hitting REFRESH or go back to Step 1 to check your database settings. Presumably I need to go in to mySQL as root and set CREATE etc... permissions for the user that I have specified in the Photopost install script? How can I do this? I have never set up a root password for mySQL. I am completely new to MySQL (although I have used it for my own developments on Windows, but never on Linux).
View Replies !
View Related
Access Denied For User 'root'@'localhost'
I am having this error message: Check the pictures #1045 - Access denied for user 'root'@'localhost' (using password: YES) I am using WAMP5,I tried to change the password in config file but no use.last time I had to uninstall and reinstall to reset the root password. what am I doing wrong?am I looking at the wrong file?
View Replies !
View Related
Access Denied For User 'ODBC'@'localhost' (using Password: NO)
I am having a problem connecting to mysql from php. Here is my code: <html><body> <? mysql_pconnect("localhost", "root", "password"); mysql_select_db("lead"); $query = "select * from products"; $res = mysql_query($query); if($res === false){ print "Error: $query<br>" . mysql_error() . "<br> "; exit(0); } while($row = mysql_fetcharray($res)){ print "$row[0]<br> "; } ?> </body></html> I've read somewhere that this is a known issue and that you could down grade to fix it, but I couldn't find anymore information than that. What needs to be downgraded, and to what version? Mysql 4.1.5, Apache2, Win 2000, php 5.0.1.
View Replies !
View Related
Access Denied For User: 'ODBC@localhost' (Using Password: NO)
im having a problem DELETING rows from one of my tables in PHP. i make various calls to mysql_query, and the script works fine until i add the following line: mysql_query("DELETE FROM {$GLOBALS['TABLES_SEARCH_Page']}"); i have given the user DELETE privilidges, but despite this, i am always returned the error: Warning: mysql_query() [function.mysql-query]: Access denied for user: 'ODBC@localhost' (Using password: NO) in g:wwwResourcesphpSearch.php on line 142 any ideas?
View Replies !
View Related
Error 1045: Access Denied For User
why each time I try to access my database using: c:mysqlininmysql -root -p and afterwards:(i.e. after inputting my at the password prompt) Enter Password: '******' I get the following: Error 1045: Access denied for user: 'ODBC@localhost'(Using password: YES) This is rather confusing to me, as I'm pretty sure that I had used the same password to pass through this particular 'door' yesterday my settings are in the following format: mysql>SET PASSWORD FOR root@localhost=PASSWORD("******"); Query OK, 0 rows affected (0.00 sec) mysql>SET PASSWORD FOR root@"%"=PASSWORD("******"); Query OK, 0 rows affected (0.00 sec) mysql>FLUSH PRIVILEGES; Query OK, 0 rows affected (0.00 sec) Really the password that I'm using is exactly the same one I had assigned to my root few days ago after installing MySQL, PHP and APACHE successfuly, and which I have been using without problem until this afternoon.
View Replies !
View Related
Error Number. 1045 Access Denied For User
everything works right up to applying security settings, then I get the above error message and it tells me: If a personal firewall is running on your machine, please make sure you have opened the TCP port 3306 for connections. Now I am running Norton Security Online - Rogers Yahoo! Online Protection and I just have no clue how to open the tcp port 3306.
View Replies !
View Related
Warning: Mysql_connect() [function.mysql-connect]: Access Denied For User 'debscrof'@'localhost' (using Password: NO)
Have MySQL on a VPS running CPanel MySQL v4.1.22-standard Can access MySql fine through CPanel, phpMyAdmin etc all work fine, creating databases, deleting databases, adding users etc However, when I try to use MySql from a website, it fails I created a user "test1" (which then got the username "debscrof_test1" from CPanel), a password for the user "test2", and then added the user to a new database "testdb" with all priviliges Then a simple script to connect to the database (as I am trying to locate the source of the errors), as per below: <?php $dbhost = "localhost"; $dbuser = "debscrof_test1"; $dbpass = "test2"; $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql'); $dbname = 'debscrof_testdb'; mysql_select_db($dbname); ?> Have tried with " and ' around the values, with 127.0.0.1 as the host... still with the same error message: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'debscrof'@'localhost' (using password: NO) in /home/debscrof/public_html/testdb.php on line 6 Error connecting to mysql ...any suggestions why I cannot connect? (and why it says password: NO)!
View Replies !
View Related
Access Denied For User 'root'@'localhost' (was "help!!! Just A Beginner..")
Hello i recently installed WAMP5 to handle my phpmysqlapache localhost sever. but when i go to the control panel and clicked the localhost and phpmyadmin everything seems fine because i can see the phpinfo window and also the phpmyadmin.. but not when i clicked the SQLite Manager.Unable to connect to database manager. Could not connect: Access denied for user 'root'@'localhost' (using password: YES).
View Replies !
View Related
1045 Access Denied - Which Userid And Password
The current situation entails a remote service running some variant of Unix and Mysql 4_0_27. I am trying to connect from a W2K system running Dreamweaver MX. I am using FTP as the connection mechanism. I can connect to remote system using the control panel of the remote service using myuserid and mypassword. I can use phpadmin to connect to mysql using the same userid and password. I can connect to the remote system using Dreamweaver; however, I cannot create a connection. I get the dreaded 1045 access denied message "1045 Access Denied for myuserid (Using Password YES)" using the same userid and password as I used with phpadmin. What I need is a detailed description of exactly what is happening. I don't believe the userid and password are incorrect.
View Replies !
View Related
1045 Access Denied For User
I made a db through Cpanel as usual (usr.pw-all privileges). If I go now to phpmyadmin I see the db but don't see the users. I only see "No privileges" in red, although I made a user to the db in a correct manner. when I want to make contact with the db through dreamweaver he gives the error: 1045 denied for user to access.
View Replies !
View Related
Error 1045 OBDC@localhost ... Using Password YES
I posted a message earlier regarding denial of access into mysql database - "Error 1045 Acess denied to user ODBC@localhost..Using password YES". I've just came across a possible solution in mysql manual, section:A.4.2 "How to Reset a Forgotten Root Password" where it says: # Take down the mysqld server by sending a kill (not kill -9) to the mysqld # server. The pid is stored in a `.pid' file, which is normally in the MySQL # database directory: # shell> kill `cat /mysql-data-directory/hostname.pid` # You must be either the Unix root user or the same user mysqld runs as to do # this. # Restart mysqld with the --skip-grant-tables option. # Set a new password with the mysqladmin password command: This gist hasn't really helped me out, or I should perhaps say that I can't figure out the steps the above info is suggesting. I'm using windows 98 - incase OS info will be required for any analysis. Does anyone know how exactly I can restart mysqld with the---skip-grant-table option? For clarity, I'd like to mention that I did not forget my password - I simply could not acces mysql from the command prompt as usual with c:mysqlin-root -p...Enter password ****, and so on! I'm only trying this as a last resort - to get rid of the old password so as to install a new one.
View Replies !
View Related
Access Denied For User ''@'localhost' To Database
Yesterday I got a new server with MySQL 5.0.22. Today I spent 10 hours trying to set up a database using webmin. Actually, it's not a problem to create a database, but the problem is that I can not connect. I tried different settings, no luck: Access denied for user ''@'localhost' to database 'mydatabase' I can connect from command line: [root@server8]# mysql -u myusername -p Enter password: *** Welcome to the MySQL monitor. Commands end with ; or g. ....... As you see I can connect. My settings from webmin: Code:
View Replies !
View Related
Access Denied For User 'ODBC'@'localhost'
I tried out all instructions that given in to several forum releated to this topic but error remain as it is. Some times mysqld-nt start sometimes not... if it start it gives Access denied error odbc@localhost(unsing password "No") I'd also tried out information that given in several forums.. but problem remains exist. OS- windows vista.
View Replies !
View Related
#1044 - Access Denied For User: '@localhost'
I've installed mysql on my macintosh OSX. Everything was fine before I tried to enter a password for the root user (using the terminal window). After that I could'nt acces to my phpmyadmin or local web site adress. I used a free software "navicat" to go and see the "manager user" section and made a big mistake touching privileges !!!!! I don't have anymore PRIVILEGES on nothing .... I can't access to anything anymore :(((((((( Does someone have the lines codes so I can restore ALL PRIVILEGE for the root and locahost ?? her is the kind of message I get on phpmyadmin : #1044 - Access denied for user: '@localhost'
View Replies !
View Related
Access Denied For User 'ODBC' @ 'localhost'.. : )
i'm using windows 2000, PHP 4.3, APACHE 2.0 web server and MYSQL 4.1 i've installed MYSQL correctly, but when i tried to type this command --> c:mysqlshow then error message come out--> access denied for user 'ODBC'@'localhost' <'using password: NO'> so i tried to fix it, and re-enter this command with password --> c:mysqlshow -p but again error message come out --> access denied for user 'ODBC'@'localhost' <'using password: YES'>
View Replies !
View Related
Access Denied For User Odbc@localhost
I am trying to install mysql on my localhost, i have had someone in and also tried on my own but cannot seem to get into it. As far as i am aware the error is due to a wrong password. The error i get in command line: Access denied for user 'DBC@localhost' (using password : NO) The error i get when trying to run in explorer (i have done all the obvious things i expect so i just got http://localhost/....): Unknown MySQL Server Host 'mysql' (11001) in C:Documents.....
View Replies !
View Related
Root User Denied Access To Fetch User List.
I can still log onto MySQL administrator or the command line program but I somehow appear to have lost all priveliges to alter or view the user list from this account. Even under the command line interface I can login but it tells me access is denied when I try to alter "root" permissions on a database. I cannot seem to log onto any of the other accounts created but obviously if I could get into the user admin I could solve this.
View Replies !
View Related
Mysql Error 1045 Access Denied
in dreamweaver when ever i try to connect i get the error message ysql error 1045 access denied for user root@localhost password "yes" i'm pretty sure i did this sql statement correctly to grant all use on the database Mysql>GRANT ALL PRIVILEGES ON *.* TO root@localhost IDENTIFIED BY 'mypassword';
View Replies !
View Related
Error 1045 Access Denied Error
All of our applications run under the root username. (I prefere we not run that way, but that is the way our system is setup currently). When I run mysql I get the error: ERROR 1045(28000): Access denied for user 'root'@'localhost' (using password: NO). Looking at the documentation it recommended that I look at the table mysql.user. I shutdown mysql and start it up again (using mysql_safe and adding the parameter --skip-grant-tables). Once the server was running with skip-grant-tables, I was able to login into user mysql by type: mysql mysql...... I saw the row that had user "root" and host "localhost" had no password. In fact all "root" rows had no password and all the permissions columns were set to "Y". So I stopped the server and restarted it again without the skip-grant-tables and again I got the ERROR 1045 mesasge. (All of this when I was running as root). I also tried mysql -u root (it gave me the same error). Are the new security issues going from version 4.0 to 4.1 that keep me from logging into mysql as root? We desire to be able to log in as root with out a password. Other things I tried: I tried running mysqladmin....I tried mysql_fix_privilege_tables...it would not let me do any of these commands.
View Replies !
View Related
Access Denied For User: 'user@172.22.0.1' (Using Password: YES)
I am currently running two servers one with Tomcat and the other with MySQL. They are both in different Windows domains and on different network segments. I have the following users on the MySQL server: user@localhost user@% I am getting a VERRRY SLOOOW connection between the two machines so I thought I'd add a user just for the Tomcat server. The IP address of the Tomcat server is 172.22.0.1 so naturally the user would be 'user@172.22.0.1' When I added this user I got the following error Access denied for user: 'user@172.22.0.1' (Using password: YES) Any ideas on what I can do to remedy the situation?
View Replies !
View Related
ERROR 1045 (28000)
I insalled mysql on my Linux Enterprise AS platform. When I contact the mysql Server: [root@LinuxServer usr]# mysql ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) what's the rong ?
View Replies !
View Related
Root Denied Access Error
As a user with all privileges I have created a database "mydb". I can then do "use mydb", but not "show tables" - that gives me access denied error. Should it really be this way? How can I give root access to listing the tables of the database?
View Replies !
View Related
Connection Problem Error 1045 (28000)
when i give the command; memos memo # mysql ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) or this one; memos memo # mysql -u root -p Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
View Replies !
View Related
Error: 'Access Denied For User
I have recently upgraded to mysql-4.0.23 from mysql-3.23 on linux system. I started the server using the command: /usr/bin/mysqld_safe --user=root & When I try to shutdown the server using the command: mysqladmin --user=root shutdown I am getting the error as follows : /usr/bin/mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user: 'root@localhost' (Using password: NO)' And hence to shudown the server,i always need to kill the running mysqld process.I dont think its advisable to do this always. Please ,help me in this regard and tell me the right command to shutdown the server.
View Replies !
View Related
ERROR 1044 (42000): Access Denied For User 'x'
I've just started learning MySQL and have found lots of useful information on the Net. I'm working on my own and am stuck here (at the very beginning!): mysql> create database menagerie; ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'menagerie' mysql> I'm using the following tutorial: http://dev.mysql.com/doc/refman/5.0/en/creating-database.html I'm using Fedora Core 6, I've done the "service mysqld start" thing, then opened mysql. No password or username was asked of me. Here are some more elements: version ("select version();"): 5.0.27 username ("select user();"): linux@localhost (my OS username is 'linux') I've found lots of information on the subject, but haven't been able to find a simple explanation to get around this problem (host, username, password). Also, I can't figure out where MySQL information is stored on Fedora Core 6. Does anybody know?
View Replies !
View Related
Replication :: Slave Thread: Error Connecting To Master: Access Denied For User
I have MySQL 3.23.41 on a RH-7.2 Linux used as local server. I'm trying to replicate the databases from server (192.168.0.1) to another linux PC (192.168.0.3). Following the manual, i grant to the master a user with file privileges, and edit both my.cnf files. The master starts fine but the slave mysql.log shows up an error: Slave thread: error connecting to master: Access denied for user: replica@localhost' (Using password: YES) (0), retry in 60 sec
View Replies !
View Related
Replication, Slave Thread: Error Connecting To Master: Access Denied For User:
I have MySQL 3.23.41 on a RH-7.2 Linux used as local server. I'm trying to replicate the databases from server (192.168.0.1) to another linux PC (192.168.0.3). Following the manual, i grant to the master a user with file privileges, and edit both my.cnf files. The master starts fine but the slave mysql.log shows up an error: Slave thread: error connecting to master: Access denied for user: replica@localhost' (Using password: YES) (0), retry in 60 sec
View Replies !
View Related
|