MySQL never asked for a password - mysql

I am watching a YouTube tutorial on MySQL/SQL, and the installer in the video was much different than mine. It asked the instructor to make a password, but for me it did not. Now, whenever I try to open MySQL 8.0 Command Line Client, it crashes immediately upon opening. How do I enter a password, and stop the application from crashing?
I used the Windows x86, 32 bit, MSI installer, and it closes when I try to open it. It is there for a quarter of a second, then it just closes, no error messages, nothing. I am going to the windows button, then clicking the icon that says "MySQL 8.0 Command Line Client".

First of all, if you have installed it properly, there should be MYSQL80 entry in services.
Search for services, then find MYSQL80(if you haven't changed the service name while installing mysql).
Make sure it is running. (Right click and start the service if not.)
Then, run cmd as administrator.
Then type "mysql_secure_installation" (without "").
And follow the prompts.
If you haven't setup your password then it should ask to enter new password.
After completion, try to run your command line client again.
I hope I was able to help you.

Related

how to make local mysql connection open at the start of computer(windows)?

am trying to create an standalone desktop application in flutter which uses mysql as local database.
my problem is when i need to use database from my application i need to open mysql command line client and enter my password to start service( or open connection).
In simple term whenever i open my desktop application mysql should be ready to use. how can i achieve this?
I have tried starting mysql as windows service . Is it the answer which i should follow?
I followed it. But it didn't work for me..
during installation of mysql in windows you'll get the option to start mysql as windows service. if you don't get you can follow starting myswl as windows service.
after this step open mysql installer-community from searchbar.
Look for "MySQL server" and click on Reconfigure
Click on "Next" until you reach the "Authentification Method" page
On the "Authentification Method" page check the second option "Use Legacy Authentication Method"
Then follow the steps given by the Windows installer until the end.
now you could directly connect to database and perform actions without creating it's local instance or without even opening mysql command line client or workbench.

Is there a way to start a MySQL server outside of the command line on Windows?

I am about to begin teaching a class on SQL to people with no programming experience. At the start of the class, I want to offer guidance on installing and using MySQL in the simplest way possible. I am using a Mac, but want to be able to help students with Windows computers as well. On Mac, to start the server I can simply go to System Preferences > MySQL > Start MySQL Server to start the server. Is there an equivalently similar way of doing things on Windows, or does it need to be done in the command line?
I have seen videos where people have gotten a server to run in MySQL Workbench just by clicking on a MySQL connection instance on the startup page, but I have not been able to do that unless I have already run the server from System Preferences first.
It has been difficult to figure this out without access to a Windows machine to try this on. So, is there a similar way of starting a MySQL server on Windows through some sort of system preferences GUI as can be done on Mac?
Enter Services in type here to search box, open,scroll down to find mysql right click and left click start,
for the long explanation https://dev.mysql.com/doc/refman/8.0/en/windows-start-service.html
We can start from the service available with the windows. To start from the service we can follow bellow steps.
METHOD #1: Access the Installed Service
Open up the Services icon in the Control Panel
Scroll alphabetically to the MySQL service
Right click the service
Click Start Service

Xampp doesn't work on Mac X

So here is what happens when i run xampp by clicking on the manager-osx.
I click on "manager-osx".
Icon jumps in the dock as if it is starting the service.
Asks for admin password. I enter the password.
It accepts the password, and application keep jumping in the docs for 3-4 times.
The app disappear from the dock.
The issue started after i have quit few processes from the activity monitor.
I am not sure what has affected xampp and can't remember what services i have stopped as there were many.
Solution applied so far:
Restarted my MacBook Pro.
Exit all other application and tried to run xampp.
Made sure no other application is running on port 80.
Removed xampp from applications and tried to reinstalled. Same issue with re-installation process, It asks for admin password and then nothing happens.
search online for any help but nothing helpful found.
I haven't got any experience with XAMMP but MAMP works always fine for me. MAMP has everything I need in terms of functionality.
I would recommend MAMP
If MAMP is not the best solution for you. You can install manualy
APACHE + PHP + MYSQL (It's not so hard)
Just go step by step using tutorial like
This
Manual installation will give you much more controll on your enviroment.
And also you will have better output to attach it here if you can't find a problems.
Of course it's little bit longer than 3 clicks. But on all production servers you need to install environment manually. This knowledge you will use later much more times. You will better understand how all is works and how to find reason of bug.(error)

problems running xamp

I am using a open source document repositary kordil edbms which works fine in my windows 7 machine .
But when i installed it in windows small business server, xamp is not running. when i start task manager httpd itself is not getting shown. I went to xamp control panel and it says error running mysql busy.I have share point in that machine which also has localhost 80.
So I changed the apache port.
I changed the apache port in httpd.conf file in 2 places
listen
server name
It seems i need to change the port for mysql also. Now what is the option to change the port for xamp mysql or am i going wrong some where else. Please also look at the screenshot of xamp control panel.
Quit Skype and then restart all services from your XAMPP and let me know if its work or not.
Port conflict as Skype also consumes 80 by default
Click on SCM and manage services by starting and stopping.
EDIT
check this link for both to work with - http://www.binodranabhat.com.np/blog/using-xampp-and-iis-together/
MYSQL not working because xampp which path excepting that path not getting automatically .
that is reason behind xampp mysql not start
go to window +R press then open cmd with run as administration then type this command
sc delete mysql
then after start mysql problem resolved.
Fixing Apache Port Conflicts
Another error message that is pretty common to see when working with XAMPP is a notification in the XAMPP control panel that the ports Apache needs to use, ports 443 and 80, are already being used by another application.
A message from the XAMPP control panel letting us know Skype is using ports 443 and 80
In the case of the error message in the image above, this is a pretty easy fix. The offending application is Skype. If you see the same message, close Skype completely and restart XAMPP to solve the problem. Skype is a frequent-flier on the port-blocking scene and pretty easy to identify and remediate. Unfortunately, things aren’t always so simple.

How to activate XAMPP's apache and mysql permanently, of non-admin account on Mac

I have Mac systems with os x10.6.8 and above. Installed XAMPP and everthing is working fine.
Its just that every time we shutdown, we again have to start apache and mysql from xampp control panel.
For this as user login is not administrator, we have to call our administrator to login every time and every day.
So, i was wondering if there is any way i can permanently start apache and mysql for the Mac system, using admin password once. And offcouse and stop it when ever required using amdinistrator password again.
Any help or idea on this will be highly appreciated.
Found a link with some info on this, don't know if it works in your case, but it's worth a try
http://www.softaculous.com/board/index.php?tid=3277&title=Start_APACHE_and_MYSQL_on_mac_os_x_boot_without_admin_password