simpler command :)
#pkg_add -r mysql51-server
from this command it will install mysql server and also mysql client for the server
once done we can enable it on boot up by editing rc.conf
#ee /etc/rc.conf
add this following line
mysql_enable="YES"
After that we can start the service by this command :
#sh /usr/local/etc/rc.d/mysql-
server.sh start
Then we have to configure our root login for mysql which is by default it is blank. By using a password for the root login it will be more safe to outsider :)
#mysql -u root
#SET PASSWORD FOR 'root'@'localhost' = PASSWORD('urpasswordhere');
once done try to login using root user
#mysql -u root -p
Enter password:
If that appear then you have successfully configuring your mysql server :)
#pkg_add -r mysql51-server
from this command it will install mysql server and also mysql client for the server
once done we can enable it on boot up by editing rc.conf
#ee /etc/rc.conf
add this following line
mysql_enable="YES"
After that we can start the service by this command :
#sh /usr/local/etc/rc.d/mysql-
server.sh start
Then we have to configure our root login for mysql which is by default it is blank. By using a password for the root login it will be more safe to outsider :)
#mysql -u root
#SET PASSWORD FOR 'root'@'localhost' = PASSWORD('urpasswordhere');
once done try to login using root user
#mysql -u root -p
Enter password:
If that appear then you have successfully configuring your mysql server :)
Comments