Using the build-in apache and mysql, I created a database using mysql in Terminal and then I imported a php file, also using Terminal.
The question is how to I access this website now in Safari? With which ip or hostname?
Using show variables; indicates that macbook-air.local is my hostname, but it doesn't load.
Any sugestions, please?
Related
I have tried everything
Wamp and XAMPP only provide thier own local server and wont let me specify my own server
I have tried IIS and PHP but it doesnt work at all
I would like a simple way to get my SQL server to use PHP in my domain, i dont need it to be remote access yet
Appreciate some hand holding at this point :(
Thanks
Hi thanks for replying
I have explained below what everything meant by using xammp or want iis and php
The server I have is on the Microsoft SQL server management studio
All of the all in one installers will just user local Host and thier own server and database I want to use mine.
Whenever I try using MySQL connection it says it has activley refused connection.
I've added my credentials into the security section on the server. Allowed remote login and specified ports on the server manager program.
Why isn't there a simple step by step program to enable php use on my server and or connect it to my online site..
my android project based on php, mysql database, when i run in my actual device which is google nexus7 the application running without any error messages, but im not able to access the database files which in my pc localhost wamp server.
Local host means, by definition, you can only access it from that machine. That's why it is local.
Access the server via a local network or build an actual website.
How do I open my php program with MSSQL Server database on my browser? Is there another software I need to install or it can be accessed through localhost?
Type localhost in your browser to see your servers settings. You can access your databases from there.
I am very new to this server setup and database connectivity. I googled a lot but couldn't find the solution for it.I am developing an android application which needs to post data to remote database. Which is done.
Now i have to setup MySQL Database in the new Windows Server 2008. I have installed and managed to get access the root user(Which is fine). Now i want to access this database from my local computer[Which is iMac]. I already set the privileges by following this link. When i tried to run from my web application it shows the following error.
Error: unable to connect to database. Host 'xx.xx.xxx.x' is not allowed to connect to this MySQL server
Here is my questions
1.) How to get access to the remote MySQL database from any computer?
2.) How to run the web application in the server?Like Web Hosting i.e Do i need to setup ftp account and put the stuff over there?(For Eg: testhost.com/connecttodatabase.php by executing this it will execute whatever code in testhost server. But i have no idea how to do that for my server).
Any help is much appreciated.
Alternately, You can also try...
use the_database_name;
GRANT ALL PRIVILEGES ON
the_database_name.*
TO
'the_user_in_php_code'#'%'
IDENTIFIED BY
'password_of_the_user_in_php_code';
FLUSH PRIVILEGES;
source:
http://forums.devshed.com/mysql-help-4/host-is-not-allowed-to-connect-to-this-mysql-server-366908.html
i have been using mysql 5.1 but it has previously worked properly but yesterday my computer crashed and i was forced to format the machine. i have installed the server and now i cannot access the phpadmin page and even the localhost page is not accessible meaning i cannot access my folders under the http format what could be the problem? I use kersperskey as my anti-virus.
If you can't access localhost, that means your web server is not running. You can't access phpMyAdmin, which is a PHP script that runs through a web server, if the web server is not running.
When you format your machine, you basically delete the web server and mysql and everything. You need to install them again.