How to get MySQL server working after OSX Yosemite upgrade? - mysql

After I upgraded my Mac from Mavericks OSX to Yosemite, my local Apache and MySQL server setup did not work anymore. Thanks to Apache localhost/~username/ not working I just got the Apache server working but my Joomla application now indicates it can't access the MySQL database; neither can the Phpmyadmin tool.
How to fix this? I've seen instructions for installing MySQL for Yosemite (https://www.computersnyou.com/3376/setup-apache-php-mysql-macosx-10-10-yosemite/) but I'm not sure whether that's the best way forward as my Joomla application still needs to access the existing MySQL db information? E.g., I don't want to lose my existing saved database info of various web applications....

If you had a working native version of mysql working on Mavericks, the mysql preference pane should be still visible in the preferences, just click on the preference pane and start mysql.
Only problem is that mysql does not auto-start on boot, this can be solved by following these steps: https://stackoverflow.com/a/26465743/580173

Just Start MySQL Server! It worked for me.

Related

WordPress Database Connection Error on MacOS Mojave

After updating to MacOS Mojave, I installed WordPress locally with WordPressify
I installed the latest version of MySQL and added a database via MySQLWorkbench.
MySQL was up and running. Everything seemed to be working. Running the development server launched the WordPress initial configuration page. Database credentials were correct. Still, WordPress was unable to connect to the database.
First step to solving this was to enable debugging in wp-config.php:
define('WP_DEBUG', true);
This revealed that the database was running, but the authentication method was failing. This was solved in System Preferences... MySQL... Initialize Database
and selecting Use Legacy Password Encryption.
Hope this helps!

double installation MySQL on Win10

Some time ago I installed XAMPP on my win10 desktop (AMD Phenom, 8gb). The reason for this is that I want to do some wordpress development.
I now want to learn how to work with MySQL and Python. Do I now have to install a new version of MySQL that runs on Win10 or can I use the currently installation that runs under XAMPP? I understand that when using XAMPP I first have to start up the XAMPP server.
I do not want to experiment as I just reinstalled win10 since I got stuck installing so many application on it.
Is it just a matter of starting up XAMPP and then connecting the database with Python? Will Python recognise it?
All help is much appreciated,
Naveen
You can use the current instance and connect with Python. As long as you have the username, password, and using localhost or an IP address all should go find.

How do I setup a visual MySQL client if I already have MySQL installed in my system?

I have downloaded the MySQL from the following link:
http://dev.mysql.com/downloads/mysql/
Downloaded the version 8.0.0. I have OS X 10.10.5
Now, I suppose I need to configure a visual MySQL client on my laptop to write queries. For that, I have installed sequelpro (sequelpro.com).
I need help on following points:
- Since there are a number of sample databases which one can use to learn SQL, can you please guide me on few such databases. My objective is to learn advanced SQL.
- Also, how do I configure my client (sequelpro) to connect to that database so that I can run queries.
As of now, I am stuck with the following screenshot with no clue what to do next.
Thanks a lot. Screenshot here
Based on the fact you said in the comments you have OSX and you installed mysql manually without phpmyadmin I suggest you download and install mamp.
mamp
1: https://www.mamp.info/en/ is,
MAMP installs a local server environment in a matter of seconds on
your computer. It comes free of charge, and is easily installed. MAMP
will not compromise any existing Apache installation already running
on your system. You can install Apache, PHP and MySQL without starting
a script or having to change any configuration files! Furthermore, if
MAMP is no longer needed, just delete the MAMP folder and everything
returns to its original state (i.e. MAMP does not modify any of the
"normal" system).
Basically it is a fake server that runs on your computer. This will be yours for localhost development. You can use it to serve your localhost php applications, change versions of php and gives you a GUI for mysql which is phpmyadmin.
Once you install mamp
you might need to configure mamp to use the mamp mysql but most likley it will work out of the box. If you do run into any problems make sure you stop the instance of mysql you installed already before running mamp then trying to ran mamp again and it should be using the correct version.

WordPress Development with MAMP not working since installing MySQL using terminal

I'm having a problem with localhost servers and databases. I'm by no means a pro at all of this but I've been developing WordPress websites for a short while and have been using MAMP because of how simple it is.
Now I understand that it installs MySQL for you and that Apache and PHP are all included with OS X, but I began learning Ruby on Rails and while I was following a tutorial I installed MySQL manually via terminal and I think I've ran into some collision problems now.
For a while MAMP refused to start the SQL server so I've changed the ports to Apache 8888 and SQL 8889 and now seems to be starting fine (which are the defaults I believe but were different for some reason).
Now I've got two different database locations (I think). One which I can see via the terminal using mysql -u root -p and the other which I can see by launching MAMP and viewing PHPMyAdmin. If I create a database in one I cannot see it in the other, but more importantly when I create the database in MAMP's phpMyAdmin and try installing WP it doesn't recognise it, is this because my username/password may have been changed for MAMP or should it all be the same?
So far I've been thinking maybe I should uninstall MAMP and do a hard reset for MySQL etc and just use the terminal to manage MySQL, phpMyAdmin and Apache etc but I'm not sure - is there a better way to go about this? I am working on a WP website for a client at the moment in tandem with a Ruby on Rails project so need to ideally jump between the two!
Having had a look around this looks like a good guide for running WordPress on your Mac locally... https://coolestguidesontheplanet.com/fastest-way-to-install-wordpress-on-osx-10-6/
They also have nice guides for installing Apache, MySQL and PHP as well for Mavericks https://coolestguidesontheplanet.com/get-apache-mysql-php-phpmyadmin-working-osx-10-9-mavericks/ and Yosemite https://coolestguidesontheplanet.com/get-apache-mysql-php-phpmyadmin-working-osx-10-10-yosemite/
Hope these help and good luck :)

Need Help Installing MySQL

I have downloaded and stalled the MySQL server 5.5 version via .DMG on my Mac.
But I am confused as to what to do next. I have the preference settings bundle and it says that the MySQL server is running. But do I need to download a client separately? I'm trying to access MySQl in terminal to create an account or login but nothing is working.
You need to use the full path to mysql (/var/lib/mysql), or add the mysql directory to your $PATH var.
If you're trying to install LAMP environment on your mac, try a complete solution, such as MAMP (http://www.mamp.info/en/index.html) or XAMP.
These tools are bundled with phpmyadmin, which makes mysql administration easy