I am working on database project, my database is on hostinger. I want to connect mysql workbench to hostinger.
can please someone guide me how to do this.
In cpanel:
Add remote IP Address to Remote MySQL
In Operating System: ODBC and MySQL Workbench
Close MySQL Workbench
Download and Install 32-bit or 64-bit MySQL ODBC connector from MySQL website
Restart PC
Configure ODBC (Windows run Win+R: %windir%\System32\odbcad32.exe )
Add source and choose: MySQL ODBC 5.3 Unicode Driver
Choose Data Source Name
TCP/IP Server: mysql.hostinger.[top-level domain] (e.g. mysql.hostinger.nl or mysql.hostinger.in)
!!! or Public IP address if it's given in cpanel at Remote MySQL on top of the page.
Port: 3306
Fill in: User and Password
Test connection
Start MySQL Workbench
Fill in same data as ODBC connection and test connection.
First SQL command have to be: USE [database name] ;
show tables;
Go to your hpanel
Select your website hosting click Manage
Go to Bottom page Under Database's click Remote MySQL
Check Any Host and Select your Database cick Create
Copy the hostname(which is something like sqlxxx.main-hosting.xx or IP 19x.xxx.xx.xx) located on top of IPv type Field
Goto workbench:
Create New Connection
Connection Method Standard(TCP/IP)
Under Parameters tab Hostname Field Enter Copied Hostname(sqlxxx.main-hosting.xx or IP 19x.xxx.xx.xx)
Port Field Enter:3306
Enter the Username & Password credentials when you created your database in Hostinger
Related
I am trying to connect a MySQL server i have made in SQL workbench to ODBC so that i can access the data in excel.
I have checked that my server and instance are running, I have also allowed ODBC through my windows firewall.
I have tried entering 127.0.0.1, localhost and my full computer name as the TCP address however i still get a connection denied message.
However if i test the connection from within workbench it connects fine to the SQL Server.
Ok i found a way to make it work,
Navigate to "users and privileges" within SQL Workbench,
Select your username from the left (not root)
Then were it says "limit to host matching" change the "%" symbol to your local ip 127.0.0.1, Also change the root password.
Then enter these new details in ODBC and it should work.
I want to connect a remote MySql database from MySql workbench but I got an error:
"IO Error: [Errno None] Unable to connect to port 22 on or
xx.xx.xx.xx"
What should I do?
I already add my IP to remote host
when I delete IP that makes the error, then I'm trying to connect, that IP showed up again in my remote host
So how can I connect to my database from MySQLWorkbench?
How to Connect to a Database with MySQL Workbench
One tool you can use to connect to remotely connect to databases on your shared, VPS, or Dedicated hosting account is MySQL Workbench. MySQL Workbench is a free tool you can use to connect to your server databases from your personal computer. MySQL Workbench can be Downloaded for free at the following link:
http://dev.mysql.com/downloads/workbench/
You will want to use the Windows (x86, 32-bit), MSI Installer if you are on Windows. The file we are installing in this tutorial is the mysql-workbench-gpl-5.2.47-win32.msi file.
Once you have downloaded MySQL Workbench, you can install it onto your computer. After you have the program installed, follow the steps below to set up a remote connection.
Add IP to your Remote MySQL
In order for you to be able to connect to your databases remotely you will need to add your local computer IP address to the Remote MySQL in cPanel.
Steps to connect to your database remotely
Open MySQL Workbench.
Click New Connection towards the bottom left of MySQL Workbench.
In the "Set up a New Connection Dialogue" box, Type your Database
connection credentials.
The credentials will be like the following:
Connection Name: You can name this whatever you like.
Connection Method: Standard (TCP/IP).
Hostname: You can use your domain our your cPanel IP address.
Port: 3306
Username: Your cPanel username or the user you created for the
database.
Password: cPanel password or the password for the database user that
was created.
Default Schema: This can be left blank.
Click Test Connection.
Type your password and click the "Save Password in Vault" check box.
Click Ok.
MySQL Workbench should say "Connection parameters are correct". Click Ok.
Click Ok again to accept the connection settings.
Now under the SQL Development section you will see your connection listed in the Open Connection to Start Querying box. Click your newly created account.
Now you will see the databases list in the area on the left.
I have remote machine with ip 192.X.X.X and am connecting it using putty(SSH) after login i was connecting to mysql using local host 127.0.0.1 and its working fine.
I was also able to mysql using mysql work bench using the option standard tcp/ip over SSH
currently am using SSIS 2012 is there any way we can connect to this mysql(which is in remote machine) using any connector..I tried oledb and odbc but not able to connect
Can any one help me on this...
Thanks in advance...
Here is how to connect to a mysql database (on a different server) for use with an SSIS 2012 package using an SSH session.
First, install the mysql drivers if not already. They can be found here:
mysql official drivers
Set up your SSH session.
Set up port forwarding. Either do a remote forward (Set local_port: 3306, remote_host: yourmysqlservername_or_ip, remote_port: 3306 ) or a local forward (Set port: 3306, host: localhost, remote port: 3306).
Log in to your server with the SSH session you just created.
The preceding 3 steps taken from this link about using SSH with mySQL
Next, you will set up a data source (system DSN) from within the ODBC data source administrator (Installed along with the drivers hopefully, example shown in the following link). This data source is what will then show up in your Connection manager list in SSIS. During this setup, you will put in 'localhost' as the server name rather than the actual server name, since you are using an SSH session and port forwarding.
Example DSN sestup
Finally, when you create a new connection in your SSIS package, choose an odbc connection and the data source name you just set up should show up in the list of data source names.
Hi I'm trying to create a new Connection to an MySQL database installed on a remote Windows server. However, due to server authentication problem, I cannot get the local mysql workbench connected to the remote database. And I could not find a place in workbench where I can provide my server authentication, i.e. username and password to access server. Does anyone know how to do this?
Thanks!
in the Home window of mysql workbench, near Mysql Connections there is a + button, click on it to Open the setup new Connection wizard, then you get to enter the server's parameters.
Hostname : your Windows Server's host name.
Port : Port on which the remote mysql server communicate.
Username : your Mysql server's Username.
Password : your Mysql server's Password.
Default Shcema : the database you want to connect to.
Hope this helps
I am trying to connect to MySQL database using VBA from my local machine. The database is in the linux server(XXXX.xxx.edu). I have the SSH client in my machine through which I connect to the *****.xxx.edu server. Once when I login and use the below command, I am able to access the MySQL database without any problem.
mysql -p -h XXXX.XXX.edu -u username dbname
However,I need to run the VBA in my machine and insert the values into this database. I tried to connect using the code mentioned in the below link.
Error in VBA:`[Microsoft][ODBC Manager] Data source name not found and no default driver specified
As told in the suggestion of the above link, I installed the MYSQL ODBC drivers which installed the MySQL 5.5 in my machine. Even after installing, I get the error,
[Microsoft][ODBC Manager] Data source name not found and no default driver specified
I am not able to figure out what exactly is the problem. How should I connect to the linux server and then connect to the MySQL database?
you install the mysql odbc driver (the msi) from here.
http://dev.mysql.com/downloads/connector/odbc/
you run ODBC Data Source Administrator
go to System DSN
click Add
select, for instance, MySql ODBC Unicode Driver
click finish.
dns name: fred
description: fred
tcpip server: 192.168.1.11 (whatever, dns, so long as u can point to it)
port 3306
user: root (whatever)
pwd: whatever works
drop down database, click test or view them