Does MySQLWorkbench include MySQL server? - mysql

My aim is to create some simple tables in MySQL via a GUI similar to SQL Server Management Studio. In order to do this I found and installed MySQL Workbench.
I am following this tutorial:
http://dev.mysql.com/doc/workbench/en/wb-getting-started-tutorial-admin.html
but on step 5 I get an error message saying cannot connect to MySQL server.
Am I supposed to have something else installed before I can use MySQL Workbench? I have assumed Workbench includes everything I need....

You will need to install MySQL yourself. You can download it individually or using a tool like WAMPserver which makes the process of installing and configuring ridiculously easy.

You will need a server. SO you can goto start->mysql folder->mysql Installer.
After that a Mysql Installer form will open. Click on ADD. You will see a list of
products. Select Server(x86 or x64) based on your machine and follow instructions
provided.Once you have downloaded, set admin password. Now you can create your instance in workbench. If server is not running, run services.msc and start MySQL
service.

Related

MySQL Workbench Server startup

I am having trouble starting up a server through MySQL Workbench. From the navigator pane on the left side of Instance -> Start/Shutdown, I tried the "Start Server" button at which point the server will look like it will try to start. The workbench will get hung up at this point and indefinitely not respond with a "thinking" mouse icon while in the workbench app.
This is my first time learning to use MySQL workbench, which I want to say that when I initially installed MySQL Workbench a server did start after installation and worked fine. It was after restarting my computer and checking on the workbench the next day (today) that the server no longer runs. I'm not seeing any MySQL references in my Services (services.msc) that might relate to starting up but that might also be because I did not install as a Windows Service. My original troubleshooting was in trying to establish a connection, which I realized it was because the server wasn't running. Could someone help me understand why the server isn't starting? Or would it be recommended to install the workbench as a Windows Service to avoid the issue I'm having?
Screenshot of the MySQL Workbench window where the application will get hung up when starting the server.
Current setup: Personal workstation, Windows 10 (64 bit), MySQL Workbench 8.0 (version 8.0.29 build 1751076 CE 64 bits). I do not plan on running the server 24/7 since this is my personal workstation.
Right-click on My Computer
Select Manage
Select Services under Servies and applications
Find MySQL among the services and open it.
Choose Automatic as a start option.
Click on start.
Press Apply & OK then exit.
It is not necessary, but I still recommend restarting PC.
The solution below fixed my issue. I definitely recommend installing MySQL Server as a windows service and making sure uncheck mark the box that says to start when Windows starts unless you plan to have your computer as a dedicated server.
Source from #Lazycoder_007
This solution uses the window's mysql installer which you have used to
install your MySQL.
Start your windows mysql installer. For me it was
"mysql-installer-community-8.0.20.0"
Then remove/uninstall the SQL
Server and remove all configurations
Manually delete the SQL Server
folder from "C:\Program Files\MySQL\MySQL Server 8.0."
Start your
mysql installer again and install the SQL Server again
You can check
now that the MySqL Server has started.

Can I connect to mysql server with only mysql client installed?

This is very novice question I am very new to working with Databases, primarily an user of R, also comfortable Bash Unix Shell. I have a MySQL server 5.7 installed on windows 10 laptop and have been using Workbench for accessing or populating databases.
I want to have a good command of in-database analytics and had a few broad questions.
Its easy to access MySQL database on my laptop from R on my laptop that was simple. Also if I go to windows command line and type mysql -u -root -p from the directory MySQL/MySQL Server 5.7/bin in can start typing SQL commands at mysql prompt.
My question is, regarding accessing my MySQL databases in my laptop or any other mysql server. From a remote Linux session on a VM, or after starting R in that Linux session. I linux can I install a mysql client alone on a Linux VM and access MySQL databases or do I have to install MySQL server as well.
My premonition was that I wouldn't have to install the server but I was experimenting in Windows Linux Subsystem(WLS) (which is a source of confusion itself since WLS is a new thing and I didn't want to generalize what I learn from experimenting in WLS to working from a remote Linux machine.
Then there is another question of working off a Linux in Virtual Box installed on my windows.
To simplify my question I would like at least know be certain about does one need to install mysql server to and have it running to access any mysql database on another machine or will it suffice to have a mysql client installed?
Your input will be greatly appreciated, as I have been only successful in trying to use my WLS and read several post/blogs I would like to be clear about how MySQL works before continuing my experiments.
Ideally I would like to query data from any bash shell that I can find or any R session.
Thanks
No, you do not need to install mysql server on a computer to be able to access another mysql server remotely. The client will suffice.

How to create a local database for MYSQL workbench?

Is it possible to create a local database on my home-computer for MYSQL workbench?
This server is only for my own use. Not to the outside community.
Download XAMPP on your machine and install it. (Windows)
After successful installation, you will be able to see an icon on your toolbar.
Click on it and start Apache, MySQL and if anything you need.
Open browser, type : localhost/phpmyadmmin
This will give you an GUI to manage databases locally on your machine. XAMPP basically provides you local server.
If this is what you are looking for, after creating a database in MySQL from your local machine, then that you could access the database through MySQL workbench as a local instance. It asks you to authenticate based on your MySQL conf though. Just the normal way!
You can download WAMP (Apache, Mysql, PHP) server on Windows.
Then add new connection in workbench.
host:127.0.0.1
username:root
password:<Empty>

MYSQL - Connect MYSQL Workbench to a MYSQL server on localhost

I know the question I am about to ask is a very stupid once but I am new to MYSQL so please bear with me. Want I want to do is create a database on my local machine and also access/manipulate it from their. I thought MYSQL WB was the all in one tool to do this i.e it will also allow me to create a database and also make a MYSQL server from which to access it. But I came to know the Workbench is just a front end and you need to have a some kind of a seperate MYSQL server module for it to access.
The problem is I can't seem to find any link for a simple a server module on the MYSQL download site.
http://dev.mysql.com/downloads/ .
It has one Cluster Server but I don't think this is what I am looking for. If anyone could provide a link to the MYSQL server module using which I could connect MYSQL Workbench on my local host, and the steps to connect them that would be great.
The one your looking for is named MySQL Community Edition. The current version is 5.6.14. Just select your platform (mac, linux or windows) and follow the installation guide.
If you wish to have php/mysql then you can download xampp. It includes all the necessary tools. Or if you wish to install it separately then follow this for Windows,
http://dev.mysql.com/downloads/installer/

How to create a connection with MySQL Admin?

I am extremly new with databases. I have only created one, and that was in SQLite on android. I downloaded MySQL Admin for linux (Ubuntu) and downloaded and installed Admin. Now I want to create a database, but I jave know idea what I'm doing. I created a connection via the drop down menu option 'Open Connection Editor', and I keep getting a 'MySQL Error Nr. 2005' error. Do I have to do something command line wise first to set up the database?
Any help is appreciated.
Aedon
MySQL is different to SQLite in that you need to have some server software running the whole time managing the database. It's that server software that you connect a MySQL client to.
You need to grab yourself a copy of MySQL Server then I'd recommend this tutorial
Good luck!
If you are using Ubuntu you can install MySQL Server easily with this command:
sudo apt-get install mysql-server
and then I suggest you to download MySQL Workbench, it's a GUI Tool where you can do almost everything with MySQL databases (create,drop,alter, modeling, administer the service).
Then, you can create a connection with mysql workbench or mysql admin (or another client) and do your stuff. If you installed the server in your PC then the parameter are something like this:
host = localhost
user = root
password = (the password you specified in the installation)