Cant Build Schema In Local Instance MySQL - mysql

I want to create a new local instance in MySQL Workbench 8.0. I already create one local connection, but when I try to create a schema the Execute query button is disabled and i cant right click on Navigator field to add schema. I follow many instruction on internet, but they all seems to have no problem when adding a schema.
The detail of local connection that I created is like this
Connection Method: Standard (TCP/IP)
Hostname : localhost
Port: 3306
Username: root
And when I click the Test Connection button, it says Can't connect to MySQL server on 'localhost' (10061)
Anyone know what I'm missing in both step and requirement?

Related

Trying to connect to VM VirtualBox MySQL from Windows 7 using MySQL Workbench

I am trying to save myself some time and eye strain by connecting my to MySQL on my VM (Ubuntu 14.04)
I have a bridged connection set up, and I test my web applications on my windows by simply navigating to http://ip_of_vm/application/index.php, so I know that they are communicating. However, when I tried setting up the connection in MySQL Workbench, I come to a screeching halt. Here are my connection parameters:
Hostname: ip_of_vm
Port: 3306 (Default)
Username: tim -> Which is a user created on my VM using: CREATE USER 'tim'#'%' in MySQL
Password: **** -> No I'm not going to paste my password here.
Default Schema: test_database
But when I press test connection I get this error:
Failed to connect to MySQL at ip_of_vm with user tim.
Can't connect to MySQL server on ip_of_vm (10061)
I've tried searching for that error code and making some adjustments based on what I've found, but I'm still having no luck.
Any suggestions would be greatly appreciated.

Migrate MS SQL Server database to MySQL using Workbench migration wizard over ssh

I am trying to migrate a SQL Server 2008 database to MySQL. The MySQL database is on a vps on digital ocean. In the migration process, the source selection was successfull but the target selection is not. For the target selection, I used the connection method as Standard TCP/IP over SSH. Clicking on Test connection gives the error "Unsupported connection method. MySQL connections over SSH are not supported in this version of MySQL workbench migration wizard."
I have MySQL version 6.1
These are the parameters I used:
SSH Hostname: host IP address:22
SSH Username: root
SSH Password: host password
SSH KeyFile: I did not set up a key file for my MySQL db. Is it required?
MySQL HostName: 127.0.0.1
MySQL Server port: 3306
username: root
password: password to MySQL
Please tell me if I am missing something or if I am giving the parameters wrong.
Do I have to set the ssh key file to migrate the database over ssh?
Note
The migration process does not support source or target RDBMS connections through SSH.
A workaround is to set up an encrypted tunnel, and then treat the MySQL target as a standard TCP (unencrypted) connection.
I found this note on the MySQL Workbech documentation for migration wizard. Heres the link
http://dev.mysql.com/doc/workbench/en/wb-migration-install.html
I do not know how to do the migration with the suggested work around. Any help will be greatly appreciated.
Thanks.
This is what I did:
First, Install MySQL on the same machine where the MS SQL Server database exists. Use the MySQL Migration wizard to migrate the database locally. Now there are two options here.
OPTION 1: Create a backup file for the migrated database in MySQL. Use this backup file and restore database in the target MySQL.
OPTION 2: Export each table from the migrated database in MySQL to .csv files and then copy these files to the server and import them in to the target MySQL database.

How to set up MySQL?

I'm running a VPS to host a Minecraft (video game) server.
For some of the data that the server collects from players, it is more efficient sometimes for it to store user information in a database in order to take a load off of the server.
I have successfully created a MySQL database called "minecraft" in Ubuntu 13.04 terminal.
Here's an image of everything I typed to create the database.
A Minecraft Bukkit server plugin that I am using to test the connection, LogBlock, cannot connect to the server. I have put in the details as follows:
mysql:
user: root
port: 3306
password: -mypassword-
host: localhost
database: minecraft
The Minecraft server simply returns that there is no database connected.
The MySQL server does not seem to be active at all. I have it running, but cannot connect to it through SQuirreL SQL either. Can anyone give me some advice on how I can actually test the database or what I might be doing wrong?
You should consider using 127.0.0.1 or your IP address for the VPS and try again.
Make sure the database can actually establish a connection through the port, just do a quick check here to see if the port is open: http://ping.eu/port-chk/
To check your mysql status on Ubuntu:
status mysql
or this way
pgrep -l mysqld
Hopefully this should help, if you still can't get anywhere then let me know Josias and I can provide further assistance
Setting up a MySQL server for the first time can be tricky. But once you get the hang of things it starts to get real easy. Heres a great place to get started with MySQL on you're ubuntu server: https://help.ubuntu.com/12.04/serverguide/mysql.html

can cakePHP connect to remote database?

I am setting up CakePHP for the first time in order to develop the server side of the website I'm building. I already have a database set up on a remote server. So I want CakePHP to connect to that server. That's not working. I get a notice "Cake is NOT able to connect to the database."
I've tried changing the settings in cake\app\database.php:
persistent: true or false
host: with or without prefix 'http://'
But none of that helps. All the examples I've seen have server set to 'localhost'.
Can anyone tell me if cakePHP can connect to a remote db? Or am I completely missing the point and should I be using the mysql server included in my WAMP set?
You have 2 options
Option 1
Your webhost needs to allow connections to the mysql instance from outside the local network.
Check the manuals for the webhost if you're allowed to change the mysql configuration yourself you may be allowed to accept incoming connections.
Your method only works when the host accepts incoming connections on for example port 3306 which is the default mysql port.
Option 2
If you have SSH access to the remote host, you're able to set up a tunnel.
Which would make you connect to the Mysql Instance though your SSH connection on a local port.
One way you could do this is by using PuTTY.
How to set up a MySQL tunnel in PuTTY
Initiate the connection and keep it alive.
Use the host 127.0.0.1 and port 3306 in your CakePHP Database config.
Username & Password would be your MySQL User Credentials

Trying to connect Coldfusion 9 to a MYSQL Datasource that was installed via MAMP (free) is throwing an error

I am trying to connect Coldfusion 9 to a MYSQL Database that was installed by MAMP (free not Pro) with the following parameters:
CF Data Source Name: MyDatasource
Database: MyDatabase
Server: localhost
Port: 8889
Username: root
Password: root
In the coldfusion Administrator I can successfully connect to this database. However, when I try to display a .cfm page that has a connection to that datasource, this error is thrown:
Error Executing Database Query.
Could not create connection to database server. Attempted reconnect 3 times. Giving up.
Any ideas??
Any help would be immensely appreciated!!
edit
this is what MAMP wants me to use and it did create a successful connection in CF Admin.
In the CF admin, if you click "Verify" it shows a successful connection? Usually MySQL databases are on port 3306 not 8889. Are you sure you have the correct settings?
So, after searching and trying to figure out what is going on, I decided to check my Application.cfm file, and sure enough, I have global connection strings for all of my queries. One of those strings was the DB password, which was not set to "root".. Thank you for your help and I apologize for the stupid question..