Alibabacloud.com offers a wide variety of articles about how to remotely connect to ubuntu, easily find your how to remotely connect to ubuntu information here online.
serverMysql-u root-p1234565. Grant permissions to the database top800Grant all privileges on top800. * to root@192.168.1.22 identified by '20140901 ';Flush privileges;6 Now you can remotely access MySQL on the serverMysql-h192.168.1.11-uroot-p123456By default, only information_schema and top800 can be accessed. top800 is the database that we grant permissions to in step 5.Solution 1,View/etc/mysql/my. after cnf finds bind-address, it finds th
Here's how to set up an Ubuntu virtual machine to allow other machines to connect remotely. The steps here are for ubuntu12.04.Step 1: Install the XRDP protocolsudo apt-get install xrdp vnc4server xbase-clientsStep 2: Set up remote sharingOpen the desktop Sharing in the/usr/share/applications directory and set the following:650) this.width=650; "src=" Http://img.
| *3b3724ae1051d0628525347dac3635a6c523f944 | | % | root | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 | |% | hive | * 4DF1D66463C18D44E3B001A8FB1BBFBEA13E27FC |+-----------+------------------+-------------------------------------- -----+3 There is no 127.0.0.1 and localhost, so it is not possible to connect with the root user, it will prompt the following error 1045 (28000for 'root'@'localhost ' (using Passwor
The first step:Vim/etc/mysql/my.cnf Found bind-address = 127.0.0.1Comment out this line, such as: #bind-address = 127.0.0.1or instead: Bind-address = 0.0.0.0Allow any IP access;Or specify an IP address yourself.Restart Mysql:sudo/etc/init.d/mysql restartStep Two:Authorized users can connect remotelyGrant all privileges on * * to [email protected] '% ' identified by ' password ' with GRANT option;Flush privileges;The first line of the command is interp
The first step:Gedit/etc/mysql/my.cnf Found bind-address = 127.0.0.1Comment out this line, such as: #bind-address = 127.0.0.1or instead: Bind-address = 0.0.0.0Allow any IP access;Or specify an IP address yourself.Restart Mysql:sudo/etc/init.d/mysql restartStep Two:Authorized users can connect remotelyGrant all privileges on * * to [email protected] '% ' identified by ' password ' with GRANT option;Flush privileges;The first line of the command is inte
The first step:Vim/etc/mysql/my.cnf Found bind-address = 127.0.0.1Comment out this line, such as: #bind-address = 127.0.0.1or instead: Bind-address = 0.0.0.0Allow any IP access;Or specify an IP address yourself.Restart MySQL:sudo/etc/init.d/mysql RestartStep Two:Authorized users can connect remotelyGrant all privileges on * * to [email protected] '% ' identified by ' password ' with GRANT option;flush Privileges;The first line of the command is interp
Here's how to set up an Ubuntu virtual machine to allow other machines to connect remotely. The steps here are for ubuntu12.04.Step 1: Install the XRDP protocolsudo apt-get install xrdp vnc4server xbase-clientsStep 2: Set up remote sharingOpen the desktop Sharing in the/usr/share/applications directory and set the following:650) this.width=650; "src=" Http://img.
Ubuntu10.04 on the back of the MySQL, executed theroot@ubuntu:~ #sudo apt-get Install MySQLAfter installing Mysql-server
Start MySQLRoot@ubuntu:~#/etc/init.d/mysql start
Local connections can be entered into the database.root@ubuntu:~ #mysql-uroot-p
Remote access permissions are set:Mysql> grant all privileges in *.* to admin@ '% ' identified by ' 123456′;Quer
The MySQL on Ubuntu10.04 is executed.Root @ ubuntu :~ # Sudo apt-get install mysqlAfter installing mysql-server
Start mysqlRoot @ ubuntu :~ #/Etc/init. d/mysql start
You can connect to the database locally.Root @ ubuntu :~ # Mysql-uroot-p
Set the remote access permission:Mysql> grant all PRIVILEGES on *. * to admin
Since Xshell remote connection to Ubuntu is via SSH protocol, it is necessary to install an SSH server to Ubuntu.1) Ubuntu installation SSH serversudo apt-get install Openssh-server2) If a problem occurs, restart the SSH service tosudo service ssh restart3) Ensure that the Xshell host (here is Win7) and Ubuntu (here is
Set the network connection mode to Bridge Mode in the Virtual Machine. manually set the network parameters in Ubuntu to the same network segment as windows, and ensure that the network can be pinged to each other. Run sudoapt-getinstallopenssh-server to start SSH-serversudo/etc/init. d/sshstartwindows and use the PuTTy software.
Set the network connection mode to Bridge Mode in the Virtual Machine. manually set the network parameters in
Xshell installation package download please click here.Since Xshell remote connection to Ubuntu is via SSH protocol, it is necessary to install an SSH server to Ubuntu.1) Ubuntu installation SSH serversudo apt-get install Openssh-server2) If a problem occurs, restart the SSH service tosudo service ssh restart3) Ensure that the Xshell host (here is Win7) and
Tags: style color io data art ar line NewThe first step: vim/etc/mysql/my.cnf found bind-address = 127.0.0.1 comment out this line, such as: #bind-address = 127.0.0.1 or instead: bind-address = 0.0.0.0 Allow any IP access; Or specify an IP address yourself. Restart MySQL:sudo/etc/init.d/mysql Restart Step Two: Authorized users can connect remotely Grant all privileges on * * to [email protected] '% ' ident
When the Ubantu is loaded, there may be a small partner that ignores a bit and forgets to play a space in one place, resulting in the inability to connect remotely.If you can make a tick here, you can not use the following operation.To switch to the root account firstsudo passwd root switch to rootHowever, you must first enter the password of the normal user, which is the current user's password.Then enter the root password two times so that the root
/etc/ssh/sshd_config2. Locate the Authentication configuration section, change Permitrootlogin Without-password to Permitrootlogin Yes, and save.# Authentication:Logingracetime 120#PermitRootLogin Without-passwordPermitrootlogin YesStrictmodes YesPasswordauthentication YesPermitemptypasswords NoDescription: Sshd_config is a configuration file for SSH, there is an option Permitrootlogin to configure whether to allow root user login, the default without-password is not allowed to use password for
;
2, change the table method. It may be that your account is not allowed to log on remotely, only on localhost. This time, as long as the computer on the localhost, log in to MySQL, change the "MySQL" Database in the "User" table "host", from "localhost" to "%" This is because of the permissions of the problem, the way to handle the following:
The code is as follows
Copy Code
Shell>mysql--user=root-p
When you remotely connect to mysql, the message "is not allowed to connect to this MySQL server" is displayed. mysqlallowedERROR 1130: Host '192. 168.1.3 'is not allowed to connect to this MySQL server. this tells you that you are not authorized to connect to the Host with t
The Linux system is not unfamiliar to programmers, it is a good development platform for it technician, so mastering the operation of Linux system is very useful for a programmer. It's not convenient for people who are accustomed to using Windows to operate directly under Linux, and this article simply explains how to use Xshell to remotely control your Ubuntu system (a distribution version of Linux) under
. implement remote connection (authorization)
Changing the value of the host field to % indicates that you can log on to the mysql server as a root user on any client machine. We recommend that you set the value to % during development.Update user set host = '%' where user = 'root ';
Change the permission to all privileges.
Mysql> use mysql;Database changedMysql> grant all privileges on *. * to root @ '%' identified by "root ";Query OK, 0 rows affected (0.00 sec)
Mysql> select host, user, passwo
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.