Once again I need your help:) . I am new to mysql and today when I decided to do some work and start the MySQL server, I get the following warning
"[Warning] TIMESTAMP with implicit DEFAULT value is deprecated".
I know I should change something somewhere but I don't know where... I'm trying to start MySQL server with executing mysqld file in bin directory. I would be very grateful if someone manage to explain me why MySQL server does not want to start and what can I do... Thank you in advance.
You'll want to set explicit_defaults_for_timestamp
Append --explicit_defaults_for_timestamp=# onto your command line.
Setting it in your option file my.ini / my.cnf / etc - Option-File Format.
setting it as a system variable.
That is caused when upgrading from MySQL 5.5 to MySQL 5.6. It looks like you have more than one version of mysql on your computer. Read here for more.
if u r using mysql 5.6 and getting
"[Warning] TIMESTAMP with implicit DEFAULT value is deprecated".
when u use mysqld in commandline, just don't worry, don't panic...
What u have to do is go in start menu-> programs-> mysql-> mysql server 5.6-> mysql commanline client.(Windows)
u will be asked to enter password, enter ur root password.
then u will see
mysql>
start creating database directly
Try it its simple, but will solve ur problem... it solved mine!
Related
MySQL 8.0 Command Line Client crashes right after entering the correct password. I have also checked in services and there is no problem there. I'm using windows
This might be because MYSQL service is stopped.
Open search bar in windows and type services
Open the services application and find MYSQL application.
Click on start
Now open sql command line and try entering password
It is because MySQL Server stop, may be you run another application that use the same port. Try to run MySQL Installer Community, and you will find the program that you have to reconfigure (blue text). Try to configure MySQL Server ant click Test Connection.
It's hard to tell with no debug output or error codes, but disabling ssl might do the trick:
mysql --ssl-mode=DISABLED --host=$MYSQL_HOST --user=$MYSQL_USER ....
I had the same issue, was looking through Google to find an answer and came here. Are you sure, that you provided MySQL password? The root cause of my problem was the fact, that I put the MySQL user instead of MySQL password (the root one). Now everything is working fine.
That could mean that the password is failing. Check CapsLock key.
Go to Control Panel and uninstall MySQL Server only, you don't need to unstall the other MySQL files.
As mentioned here, make sure you can see hidden folders and then delete the following folders:
C:\Program Files\MySQL
C:\Program Files (x86)\MySQL
C:\ProgramData\MySQL
C:\Users<your-username>\AppData\Roaming\MySQL
Reinstall MySQL Server Package only
Select another password (looks like the current password is the problem)
Come here and vote me up :)
Do something nice for someone else ;)
During installation of Kamailio SIP-server I run into the problem. After I Wrote /usr/local/sbin/kamdbctl create appears just ERROR: database engine not specified, please setup one in the config script. Know anyone possible reason?
Thank you very much
Change MYLIBDIR in kamdbctl to point to the path where the mysql file is available. That should allow it to find the right MySQL Engine.
One additional step i did prior was
apt-get install kamailio kamailio-mysql-modules
Defining the DBENGINE in /etc/kamailio/kamctlrc resolved an issue with the same "error message" on Debian 8 Jessie.
Hope that helps!
//Fredrik
"""
Kamctlrc
The /etc/kamailio/kamctlrc is the configuration file for kamctl and kamdbctl. You need to edit it and set the SIP_DOMAIN to your SIP service domain (or IP address if you don't have a DNS hostname associated with your SIP service).
Set also the DBENGINE to be MYSQL and adjust other setting as you want.
"""
I have done many changes in my /etc/kamailio/kamctlrc file to solve the problem but ERROR: database engine not specified, please setup one in the config script appears every time.
Then a simple thought that '#' is for comment solved the problem.
## database name (for ORACLE this is TNS name)
# DBNAME=MYSQL
Above was written in my /etc/kamailio/kamctlrc file and just removing the '#' created the database structure needed by Kamailio.
## database name (for ORACLE this is TNS name)
DBNAME=MYSQL
Just check that HASHTAG. ;)
I'm hoping this is a simple question. I recently installed MySQL Workbench, and thought everything was going fine, until I noticed the output of messages at the bottom. They're in a foreign language. See attached screenshot. I tried the same queries in phpMyAdmin and get similar results.
Server connection collation: utf8mb4_general_ci (I tried to change to utf8_general_ci but it won't let me)
Any help is greatly appreciated.
Try changing your my.ini file to the following:
lc-messages=en_US
or run the command prompt and in the mysql prompt do:
SET lc_messages = 'en_US';
Check the following reference
We are using XAMPP in a shared environment in our local network. All the projects had the default mysql username and password. Recently I tried to change the user name and password of a project. And now I am not being able to access phpmyadmin. It just displays the following message:
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
Now no one is able to access the phpmyadmin. How can I solve this?
Error:-Connection for controluser as defined in your configuration failed.
solution:-
because of in your ubuntu system two mysql server running so get confusion solve this problem stop mysql servert first
open terminal
type command:
sudo /etc/init.d/mysql stop
type command:
sudo /opt/lampp/lampp restart
open localhost in browser
you can just solve this by editing the config.inc.php file from the phpmyadmin folder..
This will work fine if you edit the update password with the same username..
Find the line $cfg['Servers'][$i]['password'] =";
Just replace it with
$cfg['Servers'][$i]['password'] = ' ';
Please have a look here for more details
Just add $cfg['Servers'][$i]['host']="127.0.0.1:3307"; if you change port.
There is a bat file 'resetroot.bat' located in the xammp MySQL folder
ie: 'C:\xampp\mysql'
Run the bat file and it will reset the phpadmin passwords. Then start the MySQL service in xammp and try accessing phpmyadmin.
Hope it helps.
In my case it was just because I had forgotten to turn on the 'MySQL' service on the XAMPP control panel. *facepalm*
I am also getting the same error, and finally found the answer with help of first reply of above post. But that is wrong because this error prone due to changed password so all of need to do this to get resolve it.
previous it look like:
" $cfg['Servers'][$i]['password']='';"
after I changed like:
" $cfg['Servers'][$i]['password']='root'; "
The actual reason behind this while installing the XAMMP there is no password but after the that I added password for security. But it did't get updated in config.inc.php so we need to update manually by following above steps.
For my case it seems the mysql server crashed, while it was it running state without any special thing happened. My web app was connected to the db server and was ideal for long time. I was trying to open the phpmyadmin and it started to give issues(same errors mentioned in the question) while connecting to db. After 5 mins I found my db crashed and not at all starting even after trying lot of things.
uninstall the xampp and reinstall it in differnt folder. but before uninstalling it please save the documents of 'htdocs' to the other location and after installing put ur data back to new "htdocs" folder
Remove all lines with $cfg['Servers'] , and keep ONLY the $cfg['Servers'][$i]['host']
Try accessing the phpmyadmin through the "127.0.0.1:8080"
First start the Apache server.
Then click config and open phpMyAdmin(config.inc.php)
Initially you would be having this statement in your config.inc.php
```$cfg['Servers'][$i]['host'] = '12.0.0.0';```
Change the IP address to 'localhost:' i.e.,
$cfg['Servers'][$i]['host'] = 'localhost:';
I did this and the problem solved for me. Hope it helps :)
Step1: Go to xampp/phpMyAdmin/config.inc.php
Step2: Search this: $cfg['Servers'][$i]['host'] = '127.0.0.1';
Step3: Replace with $cfg['Servers'][$i]['host'] = '127.0.0.1:3307';
Here 3307 will be change with your mysql port number, in my case it is 3307. Most of the times it will be 3306.
You can check your mysql port number from here : xampp/mysql/bin/my.ini
find this line-:
$cfg['Servers'][$i]['host'] = 'localhost';
replace it to this -:
$cfg['Servers'][$i]['host'] = '127.0.0.1:3306';
it works for me.in my case I am using port 3306
For my case, I tried to modify Then click config and open with $cfg['Servers'][$i]['host']="127.0.0.1"; then it works.
EDIT: I had MySQL installed twice on my machine (XAMPP & on its own)
When I enter my password into MySQL Command Line Client, it rejects my password, gives 1 beep and closes the window. Can anyone provide me with a basic troubleshooting list of steps (from simple to progressively more technical) to regain entry into MySQL once and for all. Also, can anyone tell me what can cause my password to suddenly be rejected? I am also running XAMPP and the MySQL service is both installed and running. Thanks in advance.
I remember when I first got this problem some months ago, if I recall correctly, I solved it by starting the MySQL service from Windows XP's Administrative Tool (something I did stopped the MySQL service and to this day I don't know what it was).
Now the problem has started back again but this time, when I checked Services, the MySQL service was already 'started'.
Any assistance will be appreciated. Thanks
I think I figured out why my password was not working. I had two versions of MySQL installed on my machine (XAMPP and MySQL 5.1). So I deleted the MySQL 5.1 and it worked.
For me (and my similar problem),
--password = mypass
didn't work, but
--password="mypass"
did.
Is there an error message when it rejects your password? I wonder if perhaps you are using an outdated client and running into this issue: http://dev.mysql.com/doc/refman/5.1/en/old-client.html
If you set mySQL to not begin running on startup, then you need to start it prior to attempting to login. This can be done via the command line, via the task manager if you configured it as a windows service, etc.
For example, here is an explanation of starting the service using cmd
Starting MySQL from the Windows Command Line | MySQL
Do you have the password for the root account? If so, try this from the command line?
mysql --user=root --password=your password here
or
mysql --user=root --password=your password here --database=MySQL
A bit too late but - If you have numeric characters in your password and are using the numpad on your keyboard, ensure that the numlock is ON. For some weird reason if you have numlock off MySQL will still interpret a keystroke. This wasn't very obvious to me since my laptop doesn't have a num lock indicator light, thats HP for yah :)
How to Reset the Root Password | MySQL
This is the services solution that was mentioned. Use this if you can't remember your root password.
I'd like to add another successful solution to this problem. I reran the installer (the msi), chose the repair option and everything was fixed.
My password suddenly worked again, so I took the following steps to change it:
Using Windows Command Prompt, navigate to MySQL's bin directory
Type: mysqladmin -uroot -p password yourNewPassword
Press Enter. You will be prompted for your password, enter it
If no error messages/beeps happen, your password was successfully changed
Log in using MySQL Command Prompt with your new password
What I don't understand is that WHY all of a sudden my password started back to work after approximately 24 hours? I wish I know so I can avoid this in the future.