There are a few tricks involved with installing mysql on a unix machine. There is the installation part and then the part where you need to connect to the mysql database server.
PS. This article assumes that the unix machine has internet access.
This command will download mysql server from the internet and install it.
If you have root access:
If you have root access:
If you have root access:
Run this shell command on the server:
You can re-perform step 4 but this time remember to supply your password:
Examples:
'%.sampldomain.com'
'192.168.10.%'
Remember to flush privileges:
If you have root access:
Leave a comment if you feel that there is anything that I have left out.
PS. This article assumes that the unix machine has internet access.
Step 1
Download and install mysql database server.This command will download mysql server from the internet and install it.
If you have root access:
 yum install mysql-server  
 sudo yum install mysql-server  Step 2
Start the mysql database server as a unix service.If you have root access:
 service mysqld start  
 sudo service mysqld start  Step 3
Check the status of the mysql database server.If you have root access:
 service mysqld status  
 sudo service mysqld status  Step 4
Check that you can connect to the mysql database from the same machine. shell>mysql -u root  
 SHOW DATABASES;  Step 5
Secure your mysql database server.Run this shell command on the server:
 shell>mysql_secure_installation  
You can re-perform step 4 but this time remember to supply your password:
 shell>mysql -u root -p<password>  Step 6
Check that you can connect to the mysql database from the same machine. shell>mysql -u root -p<password>  
 GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'  
   IDENTIFIED BY PASSWORD 'your_password'  
   WITH GRANT OPTION;  
Examples:
'%.sampldomain.com'
'192.168.10.%'
Remember to flush privileges:
 FLUSH PRIVILEGES;  Step 7
Use mysql workbench to connect to the mysql database server.Additional Notes
Shut Down the mysql database server.If you have root access:
 service mysqld stop  
 sudo service mysqld stop  
Leave a comment if you feel that there is anything that I have left out.

 
No comments:
Post a Comment