cd /usr/local/mysql/bin/
grant all privileges on *.* to 'root'@'%' identified by '12345678';
flush privileges;