ExpressionEngine Installation Issues: Database Connection Error on Localhost - mysql

Running into an odd issue with a getting a successful localhost install of ExpressionEngine 2.5.3.
I am able to run the ExpressionEngine Installation and Update Wizard where server settings, database setting and admin account information is entered. So the Apache side is working as expected, or so I assume.
The issue crops up when I click on the Install ExpressionEngine button — the point where the installer starts working it's magic — get this error:
A Database Error Occurred
Unable to connect to your database server using the provided settings.
Filename: controllers/wizard.php
Line Number: 1532
For the SQL Server Address, Username and Password, I am using the same values I have used in the past: localhost for the server address, root for the username and root for the password.
Those credentials work when used with Sequel Pro 0.9.9.1.
Permissions on config.php and database.php — both empty files — are set to 666, as suggested by the ExpressionEngine installation documentation.
I am trying this on a MacBook Air running 10.8.2 with the built-in Apache and MySQL running via XAMPP. I am using VirtualHost X to so http://baseline.loc/ points to baseline.loc in my Sites folder. There are no other instances of Apache or MySQL running.
I am not well versed debugging server issues but I am comfortable working in the terminal.
Any ideas what I should be looking at to figure out why this usually basic stage of a new project has become a stumbling block?

I've had issues before using localhost as the host. Does 127.0.0.1 work for you?

I've had similar in OSX using mamp, simply changed the folder permission of the web folder to everyone read/write via finder and that did the trick

Related

How to login to PhpMyAdmin with a Deck.app mysql instance?

Using the deck app, that uses Multipass & Docker to build containers and instances of specific technologies (such as Laravel, CodeIgnite, Apache, etc.,) to create a mysql instance it installs a copy of phpmyadmin and allows you to view the server through the browser.
I cannot logon to the phpmyadmin page that is created by this mysql/phpmyadmin instance in the deck app
I have messed around using CLI (terminal) to initiate the server to make it active, however this generally resulted in errors.
I have web hosting that allows me to use remote myqsl through cpanel but I don't know how to connect it to a localhost.
I would like to know how to login or use the mysql server.
I would appreciate advice on what I need to do to make this new mysql instance usable, so I can get a username, password & database name to utilise in a laravel project.
I would also like to know if there is any better solution for creating a mysql & phpmyadmin database to use for a laravel project.
Thanks in advance!
I have messed around using CLI (terminal) to initiate the server to make it active, however this generally resulted in errors.
What are the errors?
I have web hosting that allows me to use remote myqsl through cpanel but I don't know how to connect it to a localhost.
You wouldn't; you'll want to install your own phpMyAdmin locally rather than connecting your web host to your local server. You should not expose your local database server to the internet.
I would like to know how to login or use the mysql server.
Using the password you set during installation, or if you weren't prompted, usually it's a blank password.

Finding MySQL localhost URL and/or accessing phpmyadmin

Going around in circles. Please help, I enter http://localhost into safari on my mac and receive: It works!
However, I cannot figure out how using MySQL workbench I can find the URL. I am looking to code JSON in xCode to retrieve data from my local MySQL database, however, I do not even know the URL to access it.
My port is on 3306. I have tried http://127.0.0.1:3306 - and get a failed to open.
Do I need myphpadmin or can I go direct to MySQL?
I have tried saving a copy of MyPhPAdmin under Users>MyUserName> but this did not work when I ran: http://localhost/myphpadmin
Should the file be saved elsewhere? When I worked on Python weeks ago I run it under a different location then was recommended (Under the Python X.X cache folder) whereas online people simply ran it from their Users>MyUserName> folder. I am on the latest Catalina OS X.
Tried http://localhost/usr/local/mysql-8.0.20-macos10.15-x86_64/phpmyadmin/ - 404 not found
With MySQL, you can connect via localhost "socket" or networking "TCP/IP" connections. The user accounts in MySQL exist separately from each other, so if your user account exists with host value 'localhost' the TCP/IP connection probably won't work for you. Also note that, depending on how you installed MySQL and how it's configured, it might not even listen for network connections. Normally, localhost is preferred if you are on the same machine.
In MySQL Workbench, you need to give the hostname or IP address when selecting "Standard (TCP/IP)" from the "Connection Method" dropdown. This is simply the hostname or IP address, not a complete URL or web site. So you'd set the hostname to "127.0.0.1" or "192.168.9.34" or whatever. Again, Local Socket/Pipe is usually a better choice in most cases.
MySQL uses its own networking port (3306) and communication protocol, so using http://127.0.0.1 is incorrect as it isn't using the http protocol. Likewise, if you would need to change the port for some reason, specify that in the port field rather than as a part of the hostname.
As for phpMyAdmin, you would install that to a folder that is handled by your web server, then access it through the URL/path exposed by the web server — by default, your user home directory is not shared to the web (and rightly so, I don't want all of my documents and files shared with the world!). Put the phpMyAdmin folder in your web root and you'll have better success. Which folder that is probably depends a lot on which webserver you are running, how it is installed, and how you configured it.
I won't comment on the Python scripts you've run in the past, as my experience with serving Python to the web requires adjusting some settings in my nginx configuration and I won't want to confuse you compared to the tutorials you're following.

Run mySQL on Server with Django

I'm new to web development and I'm trying to go live with my website. Currently I can run MAMP mysql and then in the django app I can run 'python manage.py runserver' to run a virtual version on my system.
Currently I have uploaded (rsync) my django files to the server. How do I upload and run my mysql server on the web server? How do i dictate the domain? I know before that the domain was 127.0.0.1......
THanks
127.0.0.1 is localhost, so if your code is hosted on a remote server you can still access the db with that host. You need to first make sure MySQL is installed on the server. Once that has been taken care of use the MySQL terminal to create your db, its as easy as that.
Here is a useful page of MySQL commands:
http://www.pantz.org/software/mysql/mysqlcommands.html

I installed PHP and Apache successfully, then when I installed MySQL I encountered frustrating problems

I have looked at lots of forms and threads on this site.
First I installed MySQL using msi installer.
Configuration settings:
- detailed configuration
- developer machine
- multifunctional database
- initial path
- decision support
- enable tcp/icp networking, port 3306, add firewall exception for this port.
- enable strict mode
- best support for multilangualism
- install as windows service, include bin directory
- entered root password.
Then when I clicked execute it freezes after writing the configuration file.
- I closed that window.
Then when I opened MySQL Command Line Client and typed in the root password i get this..
ERROR 2003: Can't connect to to MySQL server (10060)
I then opened up command prompt and typed.
C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqld --install
got message:
Install/remove of this service denied.
I ran the initial configuration as administrator and I have checked that port 3306 is open.
Hope this is detailed enough.
Thanks.
I would suggesting uninstalling them all and reinstalling them with a package such as LAMP (for linux) or XAMPP (for windows). Much easier to install and set up, tutorials everywhere.
Can you get to the MySQL server instance config wizard in start menu
Is the MySQL service running?
whats the conf file look like?

Cannot follow external database(MySQL) of openfire server quide

I have MySQL database which I created on university's server
I try to develop android application that can send msg from mobile through XMPP protocol to keep data at my database server(from 1.)
At this time, I already downloaded openfire 3.7.0.dmg(MAC OS X) then try to setup server on my laptop
My problem is I cannot follow Database Installation Guide the error occurred: Does not have mysqladmin command at my Terminal. So, I cannot create table for openfire. Should I need to install MySQL on my laptop ?
Moreover, I pretty much confuse with [YOUR_HOST] of this statement :
jdbc:mysql://[YOUR_HOST]/[DATABASE_NAME]
I don't know what is it? should be localhost or anything?
Anyone can help me ? Thank you so much
You need to have MySQL installed on one computer you have access to. If you want to install it on your Mac, you can either download it directly from mysql.com, or you could install it using a package manager like Homebrew.
Next, make sure your MySQL install can listen for connections over TCP; there's a troubleshooting guide for that.
Next, use the name of the machine your MySQL server is running on in place of [YOUR_HOST]. If it's running on the same machine as OpenFire, you can use localhost.