MySQL - Can login w/ root via myPHPAdmin, but not remotely

Post your questions about Web Server usage and Apache + PHP + MySQL/SQLite web applications.

MySQL - Can login w/ root via myPHPAdmin, but not remotely

Postby swamplander » Fri Apr 13, 2012 9:05 pm

I've installed MySql and the add-on package phpMyAdmin and can login just fine using the root account. However when I create additional accounts and grant them full rights, they can't login. Creating accounts like this:

CREATE USER 'johndoe' IDENTIFIED BY 'johndoe';
GRANT ALL ON *.* TO 'johndoe';

In addition, when I install something like MySQL Workbench on another machine (Win7 x64) on my network, I can't login to the MyPHP on the server using the root account. Just to ensure it wasn't a firewall issue, I turned the firewall off on the client machine. And to make sure I can get to it, I can telnet to the NAS on port 3306 and get a response.

I've also ensured the "Enable TCP/IP Networking" is enabled, applied and the port is 3306.

At this point I'm a bit lost as to what could be going on. It seems that it simply (1) won't allow anyone to connect remotely and (2) will only allow the root to connect. I don't have any experience with MySQL and have read wikis and posts, but still lost. I do have experience with MS SQL Server (but that isn't helping here). Any tips?
-AC
QNAP NAS TS-559 Pro-II [[7.5TB total storage RAID5]]
QNAP NAS TS-869 Pro [[13TB total storage RAID5]]
http://www.andrewconnell.com
swamplander
Starting out
 
Posts: 21
Joined: Sat Nov 19, 2011 12:03 am
Location: St Johns, FL
NAS Model: TS-559 Pro II

Re: MySQL - Can login w/ root via myPHPAdmin, but not remote

Postby schumaku » Fri Apr 13, 2012 9:26 pm

MYSQL support is out of scope here...

In brief, you need to add @ [source] - just specifying a username is ganting local access only, no network.

http://dev.mysql.com/doc/refman/5.1/en/ ... users.html
http://dev.mysql.com/doc/refman/5.1/en/grant.html
http://www.cyberciti.biz/tips/how-do-i- ... erver.html (especially the part with the @ IP address here!)
User avatar
schumaku
Guru
 
Posts: 22283
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
NAS Model: TS-x79 Pro

Re: MySQL - Can login w/ root via myPHPAdmin, but not remote

Postby geva » Thu Jun 28, 2012 11:32 pm

@swmaspandler - phpMyAdmin will allow you to create users and assign privilidges to them from either all (%) or specific hosts.
geva
Know my way around
 
Posts: 233
Joined: Wed Aug 31, 2011 4:21 pm
Location: Lyon, France
NAS Model: TS-219P+

Re: MySQL - Can login w/ root via myPHPAdmin, but not remote

Postby smallfaihk » Sat Jul 07, 2012 1:45 pm

you can set in phpadmin page directly

in user privilege page, in login information section, make sure you select "Any Host"
smallfaihk
First post
 
Posts: 1
Joined: Sat Jul 07, 2012 1:20 pm
NAS Model: TS-112


Return to Web Server & Applications (Apache + PHP + MySQL / SQLite)

Who is online

Users browsing this forum: No registered users and 3 guests