Never confuse education with intelligence, you can have a PhD and still be an idiot.
- Richard Feynman -



Difference between revisions of "Mariadb on cygwin"

From Juneday education
Jump to: navigation, search
(Procedure)
Line 1: Line 1:
  
= Installation =
+
= MariaDB client =
 +
 
 +
== Preparations ==
 +
 
 +
# Start a [[cygwin]] terminal (running [[bash]]).
 +
 
 +
Launch the [[cygwin]] setup program and install the package <code>mysql</code>.
 +
 
 +
[[File:Mysql-mamp.png|thumb|400px|MariaDB client connecting to MySQL]]
 +
To connect to Mamp's MySQL:
 +
<source lang="bash">
 +
mysql -p -u root -h 127.0.0.1
 +
</source>
 +
 
 +
 
 +
= MariaDB Server =
  
 
== Preparations ==  
 
== Preparations ==  
  
# Disable your windows firewall.
 
 
# Start a [[cygwin]] terminal (running [[bash]]).
 
# Start a [[cygwin]] terminal (running [[bash]]).
  
 
== Procedure ==  
 
== Procedure ==  
  
Launch the [[cygwin]] setup program and install the packages <code>mysql</code> and <code>mysqld</code>. Now we need to install the MariaDB software with the following command.
+
Launch the [[cygwin]] setup program and install the package <code>mysqld</code>. Now we need to install the MariaDB software with the following command.
 
<source lang="bash">
 
<source lang="bash">
 
mysql_install_db
 
mysql_install_db

Revision as of 17:29, 26 June 2017

MariaDB client

Preparations

  1. Start a cygwin terminal (running bash).

Launch the cygwin setup program and install the package mysql.

MariaDB client connecting to MySQL

To connect to Mamp's MySQL:

mysql -p -u root -h 127.0.0.1


MariaDB Server

Preparations

  1. Start a cygwin terminal (running bash).

Procedure

Launch the cygwin setup program and install the package mysqld. Now we need to install the MariaDB software with the following command.

mysql_install_db

Note: This command may take some minutes to complete.

Now, we start the MariaDB server.

mysqld_safe &

Note: You might get a firewall notice if the firewall is up and running!

To finish things off we secure the installation:

mysql_secure_installation

When this script is executing you will get a couple of questions.

aslklasdj