kali ini saya menggunakan mysql Front untuk menghubungkan ke client. lihatlah gambar dibawah ini
dibawah ini adalah kode mysql untuk menghubungkan client komputer (PRIVILEGES).
CREATE USER 'root'@'192.168.2.20' IDENTIFIED BY '****';
GRANT ALL PRIVILEGES ON * . * TO 'root'@'192.168.2.20' IDENTIFIED BY '****' WITH GRANT OPTION MAX_QUERIES_PER_HOUR 0MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;
CREATE DATABASE IF NOT EXISTS `root` ;
GRANT ALL PRIVILEGES ON `root` . * TO 'root'@'192.168.2.20';
GRANT ALL PRIVILEGES ON * . * TO 'root'@'192.168.2.20' IDENTIFIED BY '****' WITH GRANT OPTION MAX_QUERIES_PER_HOUR 0MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;
CREATE DATABASE IF NOT EXISTS `root` ;
GRANT ALL PRIVILEGES ON `root` . * TO 'root'@'192.168.2.20';
CREATE USER 'root'@'%' IDENTIFIED BY '****';
GRANT ALL PRIVILEGES ON * . * TO 'root'@'%' IDENTIFIED BY '****' WITH GRANT OPTION MAX_QUERIES_PER_HOUR 0MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;
CREATE DATABASE IF NOT EXISTS `root` ;
GRANT ALL PRIVILEGES ON `root` . * TO 'root'@'%';
GRANT ALL PRIVILEGES ON * . * TO 'root'@'%' IDENTIFIED BY '****' WITH GRANT OPTION MAX_QUERIES_PER_HOUR 0MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;
CREATE DATABASE IF NOT EXISTS `root` ;
GRANT ALL PRIVILEGES ON `root` . * TO 'root'@'%';
yang belum paham silahkan tanyak jangan sungkan...