MySQL Configuration

If I configure MySQL on ServerA & ServerB, on ServerB, can I issue a command on ServerA: mysql -uroot -p -hServerB in order to return the result to ServerA ?

Is it possible for ServerA be a sql client such that I don't need to install the mysql on it ? Any configuration guide ? Tks
AXISHKAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
You can use the 'msyql' command line program to get results from a different server and the results will show on the 'msyql' command line you are viewing.  The 'msyql' command line program is part of the installation of the MySQL server.  I do not know if it is available separately.

Many other programs are available to do that including MySQL Workbench but all the ones I know of are GUI programs, not command line programs.  phpMyAdmin can be set up to access remote MySQL server also if you have it running on ServerA's web server.
0
AXISHKAuthor Commented:
To clarify, both servers need to install with mySQL first. And I can issue sql command on ServerB to get the result on Server A, ie

Server B#mysql -uroot -p  -h Server A

Correct ?

Is it possible to configure a mySQL proxy ?

Tks
0
Dave BaldwinFixer of ProblemsCommented:
Yes, you can connect to a different server.  Note that you have to use the username and password that exists on the other server to do that.

I don't know what a MySQL proxy would be.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.