LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-05-2012, 01:19 AM   #1
suresh.k
Member
 
Registered: Aug 2011
Location: Hyderabad, AP, India
Distribution: centos, Ubuntu
Posts: 163
Blog Entries: 1

Rep: Reputation: Disabled
Mysql user cant access from another computer via command prompt


Hi all,
I installed mysql server and phpmyadmin on centos 5.5.
then i created a user with command
mysql> create user 'username'@'localhost' identified by 'password';
he can access phpmyadmin from another computer but cant able to access via command prompt from another computer.
then i created another user with command
mysql> create user 'username'@'%' identified by 'password';
he can access mysql server form another computer via command prompt
but not able to access phpmyadmin from local or another computer.

how to create user who can access mysql server from local computer and another computer in network with command prompt as well as phpmyadmin.

thanks
suresh.
 
Old 04-05-2012, 02:56 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
He will need to use the first password for phpMyAdmin as that runs on the localhost no matter what machine he is accessing the web interface from.
He will need to use the first password for command line access on the mysql server.
He will need to use the second password for command line access from other servers.
 
Old 04-08-2012, 06:33 PM   #3
xonogenic
Member
 
Registered: Feb 2006
Posts: 30

Rep: Reputation: 2
The second user should be able to access both from the localhost and from the network, in this context the '%' is a wildcard, so it should include localhost. I would try to either restart mysql or flush privileges to make sure that it has propagated.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Cannot access sda1 through command prompt. noby950 Linux - Newbie 8 04-07-2011 02:11 PM
How do I create a new mysql user and a mysql database at the shell prompt? puppymagic Linux - Newbie 1 08-07-2010 06:33 AM
Can not find mysql command prompt Thaidog Linux - Software 4 10-03-2008 03:35 PM
httpd -l and mysql -p at any command line prompt ZC1 Linux - General 1 05-23-2006 09:58 AM
MySQL command prompt (/usr/local/mysql missing) sankar555 Linux - Software 3 03-22-2003 12:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration