| | |
mysql denying access to all users except root
Please support our MySQL advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jun 2008
Posts: 79
Reputation:
Solved Threads: 8
What does the error message say?
It depends on your error message
if its says access denied then it the problem with mysql /username/password
but if its saying can't reach mysql server its the connectivity problem
It depends on your error message
if its says access denied then it the problem with mysql /username/password
but if its saying can't reach mysql server its the connectivity problem
:- Varma
We are Happy to inform launch of a new site with loads of database related information Site offers wide range of functionality Forums,Blogs,Articles,Editorials and much more
http://www.sqllibrarian.info/
We are Happy to inform launch of a new site with loads of database related information Site offers wide range of functionality Forums,Blogs,Articles,Editorials and much more
http://www.sqllibrarian.info/
•
•
Join Date: Nov 2008
Posts: 5
Reputation:
Solved Threads: 0
mysql can disable access by host aswell as username/password
eg. user@localhost may work, but user@169.1.1.1 wont.
will allow all hosts
eg. user@localhost may work, but user@169.1.1.1 wont.
MySQL Syntax (Toggle Plain Text)
GRANT ALL ON mydb.* TO 'someuser'@'somehost';
will allow all hosts
MySQL Syntax (Toggle Plain Text)
GRANT ALL ON mydb.* TO 'someuser'@'%';
Thanks for the reply.
I did:
but there is a password in this user thats y it probably it gives an error. "couldn't find the field in table users."
and for reference the error it shows in my web app is:
and works perfectly fine if i use root with no password.
I did:
MySQL Syntax (Toggle Plain Text)
GRANT ALL ON mydb.* TO 'username'@'localhost';
but there is a password in this user thats y it probably it gives an error. "couldn't find the field in table users."
and for reference the error it shows in my web app is:
MySQL Syntax (Toggle Plain Text)
Warning: mysqli::mysqli() [mysqli.mysqli]: (28000/1045): Access denied for user 'username'@'localhost' (USING password: YES)
and works perfectly fine if i use root with no password.
•
•
Join Date: Nov 2008
Posts: 5
Reputation:
Solved Threads: 0
sorry. my bad. that wouldnt have put a password on the user,
i advise setting a root password. major security risk.
edit:
http://dev.mysql.com/doc/refman/5.1/...ing-users.html
sql Syntax (Toggle Plain Text)
GRANT ALL PRIVILEGES ON mydb.* TO 'username'@'localhost' IDENTIFIED BY 'some_pass';
i advise setting a root password. major security risk.
edit:
http://dev.mysql.com/doc/refman/5.1/...ing-users.html
Last edited by peter_budo; Feb 10th, 2009 at 8:31 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
•
•
•
•
sorry. my bad. that wouldnt have put a password on the user,
GRANT ALL PRIVILEGES ON mydb.* TO 'username'@'localhost' IDENTIFIED BY 'some_pass';
i advise setting a root password. major security risk.
edit:
http://dev.mysql.com/doc/refman/5.1/...ing-users.html
If I helped you I would appreciate it if you would give me some reputation.
New Social Network in Development offline! Follow on twitter for updates!
Currently developing what should be social network 2.0 .
New Social Network in Development offline! Follow on twitter for updates!
Currently developing what should be social network 2.0 .
i don't get it....phpMyAdmin shows an error...
#1133 - Can't find any matching row in the user table
when i entered:
i have checked it at-least 20 times if i was making a mistake somewhere....but i cant seem to find any....i'm doing exactly what you're saying....how can it not find that field when i can see it...
and when i made this user i did grant all the privileges if thats what the above command is for.
and thanks for the password on root tip....i do have a password now....thanks....
#1133 - Can't find any matching row in the user table
when i entered:
MySQL Syntax (Toggle Plain Text)
GRANT ALL PRIVILEGES ON mydb.* TO 'username'@'localhost' IDENTIFIED BY 'password';
i have checked it at-least 20 times if i was making a mistake somewhere....but i cant seem to find any....i'm doing exactly what you're saying....how can it not find that field when i can see it...
and when i made this user i did grant all the privileges if thats what the above command is for.
and thanks for the password on root tip....i do have a password now....thanks....
![]() |
Other Threads in the MySQL Forum
- Previous Thread: Mysql and php optimization please!!! :(
- Next Thread: Query not work in MYSQL 4 only in 5..
| Thread Tools | Search this Thread |
1 agplv3 alfresco amazon api artisticlicense aws bizspark breathalyzer camparingtocolumns changingprices cmg communityjournalism contentmanagement contractors copyright court crm data database design developer development distinct dui email enter enterprise error eudora facebook form foss gartner gnu government gpl greenit groupware hiring hyperic images innerjoins insert ip joebrockmeier join keyword keywords kickfire laptop law legal license licensing linux maintenance managing mariadb matchingcolumns metron microsoft microsoftexchange mindtouch montywidenius multiple music mysql mysqlcolumnupdating mysqldatetimeordermax() mysqlindex mysqlinternalqueries mysqlquery mysqlsearch news open-xchange opengovernment opensource operand oracle penelope php priceupdating query referencedesign reorderingcolumns resultset saas select sharepoint simpledb sourcecode spotify sql sugarcrm syntax techsupport thunderbird transparency virtualization





