i have installed MySQL server with developer default, I can connect to database with local application, How ever i am not able to connect to database from other system on the network it saying unable to reach database. I access database with root user and password
please give me steps to configure my MySQL server so that i can access database from any system in my network
You will have to create a user allowing him to connect from any host ('user'#'%') and use that user to connect to your MySQL server machine. Also, you'll have to set bind-address of your MySQL configuration to your server machine's IP.
Check the following article. Although it is for Linux environment, you can get the general idea of what is to be done.
https://rtcamp.com/tutorials/mysql/remote-access/
Related
I am on Windows 7 32-bit.
I have a .SQL file database backup/dump from our relational database software/server. I need to run this locally, as our relational database is going to the cloud where ODBC connections, etc won't be permitted at first. I use this MySQL database for reporting and so I still need to connect it to Crystal Reports, but locally. I have a daily .SQL backup file I can download from an FTP site to keep it up to date.
I am attempting a local MySQL database instance now, no server just a local database that I can query from in Crystal Reports. But I am having issues.
How do I:
1. Successfully Run a local instance of MySQL on my computer.
2. Connect the instance to Crystal Reports via MySQL driver setup.
3. Perform a import + restore to bring the database copy into the live instance.
download MySQL installer here:
http://dev.mysql.com/downloads/installer/
And then I downloaded MySql WorkBench.
At workbench's connection configuration I put hostname as "127.0.0.1" ( I also attempted "localhost"), port "3306", user: "root", password is empty.
I click "test connection" and it gives me this error:
"Can't connect to MySQL server on '127.0.0.1' (10061)"
What am I missing?
Based on your posted instructions that you followed, I didn't see any mention of mysql itself being installed.
The MySQL workbench is not the actual server, but a suite of tools use to help manage it.
In the installer for MySQL you should see an option for an instance of mysql or some verbiage to that effect, if not "MySQL Server". That is what you also need to install.
any ide how to connect to my local mysql wamp server from another computer? Not in lan. For e.g. connect to 81.182.127.107, or see the phpmyadmin using 81.182.127.107phpmyadmin?
There are two ways to connect to a mysql server:
direct connection, eg. via database software or from your source code
via a local installed user interface, usually phpmyadmin which is a local hosted website.
mysql is bound to the local addresses by default. To change open the my.conf, and comment the bind-address: 127.0.0.1 like this:
#bind-address: 127.0.0.1
This will allow direct access to the mysql server from outside.
If you want to use phpmyadmin, you also need a webserver, which is apache by default at WAMP. There in the root web dir, phpmyadmin should be already installed, if not you need to install and configure it.
After this, http://ip-from-pc/phpmyadmin should bring you the user interface to your local mysql server.
I have two servers running on Ubuntu. Server 1 only has MySQL installed and acts as an database. Server 2 is a Apache web server. The database is internal and so as the Apache server and they can ping each other but the database server is not accessible via the internet. I can telnet into the database server from the Apache but I can not connect to the database via PHPMyAdmin.
So the question is how I can configure this to work. I also don't want to allow access to the whole server (databases), access only via user name and password specified.
Thanks!
Define your user as user#[hostip-of-Php-myadmin-server] and you should be set?
It was a BIND issue, it's all fixed now.
We have a fairly simple M$ Access db, split into front-end (forms, reports, etc.) and back-end (tables). Currently looking for a way to get the tables with all the critical data off of one desktop and hopefully into a MySQL database on our web host, and be able to connect to it from multiple PCs (still probably only one or two people connecting to it at any give time), and eventually, hopefully, migrate to a web application when time allows. Many of the examples I've read about people connecting an Access db front-end to a MySQL back-end seem to imply that they are doing so on a LAN, probably behind a firewall, etc.
Is it at all safe to connect a M$ Access front-end to a MySQL backend when that mysql server is running on a remote web host? Does the ODBC connector take care of encryption?
TIA,
Monte
You could use putty to mount a ssh tunnel to your mysql server and redirect the remote mysql port to your machine.
Using putty is pretty straightforward:
Give it your mysql server dns name as the host and go to "Connection/SSH/Tunnels", there you define the local port to connect in the "Source Port" field (e.g. 3307).
In the the "Destination" field put the dns name of your mysql server followed by a colon and the port mysqld is running in (e.g. mysql.example.org:3306).
Save this as a profile then connect and the remote mysql port will be availbable locally on port 3307.
Just make sure you restrict the user because by default he will have an ssh shell on the server.
Setting up key authentication would also be practical because you won't have to enter a password to connect to the server (but be sure to protect your key on disk by encrypting it).
EDIT: It seems the mysql odbc connector support ssl, you could use that too but I'd personnally choose to use SSH anyway as you will have it already on your mysql server.
I'm using glassfish(v2.11) as my application server and I have another machine for mysql database server. Currently I want to separate the app server and db server, so I create a jdbc datasource to point to mysql server, but it doesn't works as expect, by the way, when I create datasource to point to local machine (glassfish app server and mysql db server in single machine), and It works well.
Is there any configuration I need to care of when pointing datasource to different machine which I use to host my database (MySQL 5.1)?
Besides granting the mysql user you'll connect as the proper rights, specifying the host in the JDBC url, and making sure there's no firewall stopping you (default mysql uses port 3306), there should be no difference.
WOW ...restart glashfish app server and it works .. :)