Solved

php mysql access host

Posted on 2011-09-26
3
179 Views
Last Modified: 2012-05-12
I have several php accounts in a reseller package.  I am trying to move some code from one machine to another.  I believe that I need to do something with an access host to allow my code on the new server to access the database on the old one.  What should I do?  I tried adding an access host, but I am not sure what I am doing.
0
Comment
Question by:jackjohnson44
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
parparov earned 500 total points
Comment Utility
Your mysql server has to grant privileges for the queries to the new host with the code.
I am not sure what mysql management interface you're using, so I am unsure what specific advice to give you.
0
 

Author Comment

by:jackjohnson44
Comment Utility
What do I use as a host name?  Do I just ping the server and use it's ip?  Is there a php script that I can run to get info?  I don't use a mysql management tool.  I am just running php code against it.
0
 
LVL 9

Expert Comment

by:parparov
Comment Utility
you use the name of server running the php script as the mysql server sees it.
Can you ssh between from php server to mysql server?
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Creating and Managing Databases with phpMyAdmin in cPanel.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now