By infoefabrik
Hi,
in every php file were I use command line mysql_connect(“localhost”,“root”,“password”);
I get 500 error, how can I fix this Problem
thanks ;)
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
That most likely means that either your MySQL server isn’t running your login credentials are incorrect. A 500 server error is displayed by the web server whenever a script fails to execute and the full details are located in the web server error log so if you check that you’ll see if its a user login issue or something else and we can troubleshoot from there.
well I’m novice, i try this “sudo service mysql start” I get the answer from server “Job is already running: mysql”
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.