-
Notifications
You must be signed in to change notification settings - Fork 36
Installation of mysql server
anjalysuresh edited this page Feb 7, 2018
·
11 revisions
- First thing let’s upgrade the packages:
sudo apt-get update
sudo apt-get -y upgrade
- Install mysql and dependencies
sudo apt-get install mysql-server
- Go to /etc/mysql/mysql/conf.d/mysqld.cnf
Set bind-address = 0.0.0.0
-
Access mysql using mysql -u root -p enter the password
-
Create the database collaboration.
mysql> create database collaboration;
mysql> exit;
-
Provide permissions to remote nodes or external users -
Execute the following commands .
mysql -u root -p
mysql> use collaboration;
mysql> GRANT ALL ON *.* TO edx@'10.129.26.148' IDENTIFIED BY 'edx123'
mysql> flush privileges;
mysql> GRANT ALL ON *.* TO edx@'10.129.26.188' IDENTIFIED BY 'edx123'
mysql> flush privileges;
- Go to /etc/mysql/my.cnf of above two vms and give the following information.
[client]
host=10.129.26.120(ip of mysql server)
port=3306
database = collaboration
user = edx
password = edx123
default-character-set = utf8
Collaborative Community
Contents