Search
 
SCRIPT & CODE EXAMPLE
 

SQL

mysql allow remote connections

#open /etc/mysql/mysql.conf.d/mysqld.cnf 
#and change
#bind-address            = 127.0.0.1
#to
#bind-address            = 0.0.0.0

#then grant root all privaleges to root
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;
FLUSH PRIVILEGES;

#If you ran above command and accidently
#did not change password for root you can run this:
ALTER USER 'root'@'%' IDENTIFIED BY 'MyNewPass';
Comment

Enable remote access for MySQL

[root@server #] nano /etc/csf/csf.allow
tcp:in:d=3306=IP-HERE 
Comment

How to Allow MySQL remote connections in Ubuntu Server

GRANT ALL PRIVILEGES ON *.* TO 'user'@'%';
Comment

How to Allow MySQL remote connections in Ubuntu Server

sudo vim /etc/mysql/mariadb.conf.d/50-server.cnf
Comment

How to Allow MySQL remote connections in Ubuntu Server

bind-address            = 127.0.0.1
Comment

How to Allow MySQL remote connections in Ubuntu Server

bind-address            = 0.0.0.0
Comment

How to Allow MySQL remote connections in Ubuntu Server

sudo systemctl restart mariadb
Comment

How to Allow MySQL remote connections in Ubuntu Server

sudo systemctl restart mysql
Comment

How to Allow MySQL remote connections in Ubuntu Server

sudo netstat -tulnp | grep mysqld
Comment

How to Allow MySQL remote connections in Ubuntu Server

tcp        0 0 0.0.0.0:3306            0.0.0.0:* LISTEN   622/mysqld
Comment

How to Allow MySQL remote connections in Ubuntu Server

sudo ufw allow 3306/tcp
Comment

How to Allow MySQL remote connections in Ubuntu Server

nmap 192.168.1.100
Comment

How to Allow MySQL remote connections in Ubuntu Server

CREATE USER 'username'@'%' IDENTIFIED BY 'new-password';
FLUSH PRIVILEGES;
Comment

How to Allow MySQL remote connections in Ubuntu Server

GRANT ALL PRIVILEGES ON dbname.* TO 'username'@'%';
Comment

How to Allow MySQL remote connections in Ubuntu Server

CREATE USER 'username'@'192.168.1.200' identified by 'new-password';
Comment

How to Allow MySQL remote connections in Ubuntu Server

mysql -h 192.168.1.100 -u username -p
Comment

PREVIOUS NEXT
Code Example
Sql :: mysql last day of next month 
Sql :: sql skip the first row 
Sql :: no data found oracle 
Sql :: add sequence postgres 
Sql :: see all users mysql 
Sql :: alter default column value oracle 
Sql :: mysql connection with sqlalchecmy 
Sql :: postgresql print variable 
Sql :: postgres DROP and create contraint 
Sql :: grant lock tables privilege mysql 
Sql :: sql padd let with zeros 
Sql :: sql server check port number 
Sql :: how to create index mysql 
Sql :: import sql file laravel cmd 
Sql :: check all sequences oracle sql 
Sql :: mysql get last id 
Sql :: SQL Integer devision 
Sql :: get current year sql 
Sql :: postgres set user as superuser 
Sql :: console output pl sql 
Sql :: oracle current timestamp 
Sql :: sometimes i cant edit sql developer 
Sql :: mysql reset auto increment 
Sql :: create table sql server auto increment primary key 
Sql :: day of week postgresql 
Sql :: oracle view source 
Sql :: group by 15 minute interval sql server 
Sql :: mysql bigint max value 
Sql :: mysql best varchar length size 
Sql :: mysql with rollup 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =