Quantcast
Channel: MySQL Forums - Install & Repo
Viewing all 7242 articles
Browse latest View live

【Please Help】Error when install MySQL (no replies)

$
0
0
Hi, I'm a new MySQL user, I try to install MySQL workbench and server on my desktop. However, I always meet a error when I just start install it:



[Unhandled exception has occurred in your application....No such host is known.]




If I choose continue and ignore this error, I cannot use MySQL server.

Does anyone know how to fix it? I try to figure it out by myself but cannot find same issue online.

Much thanks in advance!

Windows Server 2016 Connection Issues (no replies)

$
0
0
I have installed and configured MySQL server 8.0.20. When I try to connect to this server with my application I get a connection time out error. If I up the time out I get a "Can't connect to this server". I am 100% sure the connection string is correct. I have also upgraded to the newest version 8.0.21, but with no luck.

One thing I have noticed is that when I try to configure the MySQL server through the MySQL Installer, it hangs for a few seconds and fails to connect on the check connection step. The weird thing is that this only happens the first time, if I immediately do it again the check is successful. If I use the MySQL shell or Workbench it connects successfully on the first attempt. I have tried turning off the firewall, but this didn't help. It seems to me that something is blocking the connection, but I have no idea what.

When I run this on my local machine (Windows 10) everything works perfectly, but when I run it on my Windows Server 2016 this issue occurs.

Do you have any idea what the problem is or how to fix this?

Application stuck on checking for root password (1 reply)

$
0
0
Hello Everyone,

I am unable to connect to my database on MYSQL because the installer freezes when in the accounts and roles section where I input my root password and click on check. No matter what I input for a password it will freeze for a good 2 minutes even if I input the correct root password. After those 2 minutes, It gives me an error "MySQL server is not running, a connection cannot be established". Just yesterday I had no such issue. Even when I start running MYSQL80 through windows services, it gives me yet another error " The MySQL80 service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs"

Any help would be appreciated, thank you.

MySQL crashes on install 18.04 (2 replies)

$
0
0
Can't install mysql-server on Ubuntu 18.04. It crashes, and I've tried purging it and reinstalling. Just will not work.

$ sudo apt install mysql-server

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
mysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server-5.7 mysql-server-core-5.7
Suggested packages:
mailx tinyca
The following NEW packages will be installed:
mysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server mysql-server-5.7 mysql-server-core-5.7
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/19.0 MB of archives.
After this operation, 155 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
Selecting previously unselected package mysql-common.
(Reading database ... 307086 files and directories currently installed.)
Preparing to unpack .../mysql-common_5.8+1.0.4_all.deb ...
Unpacking mysql-common (5.8+1.0.4) ...
Selecting previously unselected package mysql-client-core-5.7.
Preparing to unpack .../mysql-client-core-5.7_5.7.31-0ubuntu0.18.04.1_amd64.deb ...
Unpacking mysql-client-core-5.7 (5.7.31-0ubuntu0.18.04.1) ...
Selecting previously unselected package mysql-client-5.7.
Preparing to unpack .../mysql-client-5.7_5.7.31-0ubuntu0.18.04.1_amd64.deb ...
Unpacking mysql-client-5.7 (5.7.31-0ubuntu0.18.04.1) ...
Selecting previously unselected package mysql-server-core-5.7.
Preparing to unpack .../mysql-server-core-5.7_5.7.31-0ubuntu0.18.04.1_amd64.deb ...
Unpacking mysql-server-core-5.7 (5.7.31-0ubuntu0.18.04.1) ...
Setting up mysql-common (5.8+1.0.4) ...
update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Selecting previously unselected package mysql-server-5.7.
(Reading database ... 307242 files and directories currently installed.)
Preparing to unpack .../mysql-server-5.7_5.7.31-0ubuntu0.18.04.1_amd64.deb ...
Unpacking mysql-server-5.7 (5.7.31-0ubuntu0.18.04.1) ...
Selecting previously unselected package mysql-server.
Preparing to unpack .../mysql-server_5.7.31-0ubuntu0.18.04.1_all.deb ...
Unpacking mysql-server (5.7.31-0ubuntu0.18.04.1) ...
Setting up mysql-server-core-5.7 (5.7.31-0ubuntu0.18.04.1) ...
Setting up mysql-client-core-5.7 (5.7.31-0ubuntu0.18.04.1) ...
Setting up mysql-client-5.7 (5.7.31-0ubuntu0.18.04.1) ...
Setting up mysql-server-5.7 (5.7.31-0ubuntu0.18.04.1) ...
update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Renaming removed key_buffer and myisam-recover options (if present)
Created symlink /etc/systemd/system/multi-user.target.wants/mysql.service → /lib/systemd/system/mysql.service.
Job for mysql.service failed because the control process exited with error code.
See "systemctl status mysql.service" and "journalctl -xe" for details.
invoke-rc.d: initscript mysql, action "start" failed.
● mysql.service - MySQL Community Server
Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Fri 2020-07-31 15:51:17 EDT; 11ms ago
Process: 10391 ExecStart=/usr/sbin/mysqld --daemonize --pid-file=/run/mysqld/mysqld.pid (code=exited, status=1/FAILURE)
Process: 10382 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)

Jul 31 15:51:17 trinity systemd[1]: mysql.service: Service hold-off time over, scheduling restart.
Jul 31 15:51:17 trinity systemd[1]: mysql.service: Scheduled restart job, restart counter is at 1.
Jul 31 15:51:17 trinity systemd[1]: Stopped MySQL Community Server.
Jul 31 15:51:17 trinity systemd[1]: Starting MySQL Community Server...
dpkg: error processing package mysql-server-5.7 (--configure):
installed mysql-server-5.7 package post-installation script subprocess returned error exit status 1
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.7; however:
Package mysql-server-5.7 is not configured yet.

dpkg: error processing package mysql-server (--configure):
dependency problems - leaving unconfigured
Processing triggers for systemd (237-3ubuntu10.42) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for ureadahead (0.100.0-21) ...
ureadahead will be reprofiled on next reboot
Errors were encountered while processing:
mysql-server-5.7
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

HAVE SSL DISABLED (1 reply)

$
0
0
In MySQL server, when I specify my own certificates SSL gets DISABLED.

Recover data from old laptop harddisk (no replies)

$
0
0
Hi,

Installed MySQL 5.7.14 using WAMP on a Win 10 laptop.

The laptop was stolen but have a backup of the hard drive, and have located the data on this (\wamp64\bin\mysql\mysql5.7.14\data).

All the databases are there as separate folders containing, for each table in the database, a FRM and IBD file. Some have MYI or MYD files which I assume are indexes. For each database there is also a db.opt file.

Have a new laptop, on which I have installed MySQL 8.0.21, again via WAMP.

Question is can I import the data from the old system into the new one, and if so how to do it?

Many thanks

SQL statement is failing. Why? (1 reply)

$
0
0
I am trying to run the following statement:
SELECT cc.cost_center_name, cc.qualified_percent, SUM(e.w2_wages) as qualified_amount
FROM cost_center as cc,employees as e
WHERE e.email='$email' AND e.campaign='$campaign'
AND cc.email='$email' AND cc.campaign='$campaign'
AND cc.cost_center_name=e.department

This is supposed to get total all the wages for employees in each cost center. Instead it returns just this:
cost_center_name qualified_percent qualified_amount
test 0 267,000

"test" is one of the cost centers, but there are about 30 more. Why is it just doing "test"?

Connect Error (1 reply)

$
0
0
I have been using MySQL for several months. Today it didn’t work. I haven’t installed any new programs or done anything else differently.

I searched and tried several solutions. The last was to uninstall and then reinstall. When I started Workbench after the reinstall it still had my data. But it still doesn’t work.

Here are several symptoms.

After the reinstall, Workbench does open. However, it doesn’t work. In the Information Panel, it says “No connection established”.
If I go to the Server tab, then select Startup/Shutdown, there is a note that the database server instance is stopped. If I click the Start Server button, I get a popup message box that says:

Connect Error
Could not connect to MySQL: unable to connect to localhost: 3306(code 2003)

Also, the Startup Message Log has this:
2020-08-19 15:55:29 - Workbench will use cmd shell commands to start/stop this instance
2020-08-19 15:56:48 - Starting server...
2020-08-19 15:56:48 - Server start done.
2020-08-19 15:56:52 - Checking server status...
2020-08-19 15:56:52 - Trying to connect to MySQL...
2020-08-19 15:56:52 - Unable to connect to localhost:3306 (2003)
2020-08-19 15:56:52 - Assuming server is not running
2020-08-19 15:58:17 - Checking server status...
2020-08-19 15:58:17 - Trying to connect to MySQL...
2020-08-19 15:58:17 - Unable to connect to localhost:3306 (2003)
2020-08-19 15:58:17 - Assuming server is not running

I have Windows 10 and am using MySQL with Visual Studio.

What should I try next?

Thank you

mysql-cluster | Three way node (no replies)

$
0
0
Hello Team,

I am trying to Install MySQL cluster with Three nodes on CentOs 8

1 - Management Node
2 - Data Node/Sql Node
3 - Data Node/Sql Node

And My API Nodes are not connecting, It is giving me the following error

id=4 (not connected, accepting connect from 10.86.XXX.2XX)

Please help me figure out what am I doing wrong, I followed all steps given in the mySQL guide.

Thanks In Advance.

MySQL Service Will Not Start / Windows Server 2012 (1 reply)

$
0
0
Preface: I am a Microsoft SQL DBA. I know just enough about MySQL to get by. That said, I have been called in to repair a MySQL installation.

Main Problem: MySQL service fails to start.

However, I can get the mysql engine fired up, no problem, but only through the --console via the command line. I can also access the installation via MySQL Workbench. However, no Schemas are present.

All of the database files that used to be connected in this installation reside at C:\ProgramData\MySQL\MySQL Server 5.6\data. However, when mysql is fired up via the console, it seems to want to use this folder C:\Program Files\MySQL\MySQL Server 5.6\data as it's data folder. Even if I change the reference to the data directory in the my.ini file, it only uses C:\Program Files\MySQL\MySQL Server 5.6\data. I found this out by creating a test schema (database) called "testing123", which I was easily able to create with mysql up and running and seeing where the folder landed in the file system.

There are a handful of databases that were previously up and running in C:\ProgramData\MySQL\MySQL Server 5.6\data. All data files are in tact. How can I restore these files?

Thanks in advance for any help!

MYSQL Remote Connections (no replies)

$
0
0
Hi, i am running a mysql database on my windows computer. I am trying to connect with 3rd party programs with external internet connections to manage my database, but i get the error access denied. How would i add specific ip addresses to the white list so i can remotely connect to my databases?

Mysql server won't start after clean install (2 replies)

$
0
0
I just completed a clean install from a Live DVD of Ubuntu 18.04.5 x64. I had a backup of my old system and restored my home directory to my new system. I also moved my /var/lib/mysql folder from my backup to the new system after renaming the new /var/lib/mysql to mysql.old with the following commands:

cd /var/lib
sudo mv mysql mysql.old
sudo rsync -av /media/butch/system/var/lib/mysql .

I then issued the following command

sudo service mysql start

to start the MySQL server. I received the following messages:

● mysql.service - MySQL Community Server
Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2020-09-01 13:44:43 EDT; 17min ago
Process: 1452 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=1/FAILURE)

Sep 01 13:44:43 cp1 systemd[1]: Starting MySQL Community Server...
Sep 01 13:44:43 cp1 systemd[1]: mysql.service: Control process exited, code=exited status=1
Sep 01 13:44:43 cp1 systemd[1]: mysql.service: Failed with result 'exit-code'.
Sep 01 13:44:43 cp1 systemd[1]: Failed to start MySQL Community Server.
Sep 01 13:44:43 cp1 systemd[1]: mysql.service: Service hold-off time over, scheduling restart.
Sep 01 13:44:43 cp1 systemd[1]: mysql.service: Scheduled restart job, restart counter is at 5.
Sep 01 13:44:43 cp1 systemd[1]: Stopped MySQL Community Server.
Sep 01 13:44:43 cp1 systemd[1]: mysql.service: Start request repeated too quickly.
Sep 01 13:44:43 cp1 systemd[1]: mysql.service: Failed with result 'exit-code'.
Sep 01 13:44:43 cp1 systemd[1]: Failed to start MySQL Community Server.

I checked the Journal

journalctl -xe

Sep 01 14:30:50 cp1 systemd[1]: Stopped MySQL Community Server.
-- Subject: Unit mysql.service has finished shutting down
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit mysql.service has finished shutting down.
Sep 01 14:30:50 cp1 systemd[1]: Starting MySQL Community Server...
-- Subject: Unit mysql.service has begun start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit mysql.service has begun starting up.
Sep 01 14:30:50 cp1 mysql-systemd-start[4201]: ERROR: Unable to start MySQL server:
Sep 01 14:30:50 cp1 mysql-systemd-start[4201]: mysqld: Can't change dir to '/var/lib/mysql/' (Errcode: 13 - Permission denied)
Sep 01 14:30:50 cp1 mysql-systemd-start[4201]: 2020-09-01T18:30:50.994087Z 0 [ERROR] unknown variable 'key_buffer=16M'
Sep 01 14:30:50 cp1 mysql-systemd-start[4201]: 2020-09-01T18:30:50.996675Z 0 [ERROR] Aborting
Sep 01 14:30:50 cp1 mysql-systemd-start[4201]: Please take a look at https://wiki.debian.org/Teams/MySQL/FAQ for tips on fixing common upgrade issues.
Sep 01 14:30:50 cp1 mysql-systemd-start[4201]: Once the problem is resolved, restart the service.
Sep 01 14:30:50 cp1 systemd[1]: mysql.service: Control process exited, code=exited status=1
Sep 01 14:30:50 cp1 systemd[1]: mysql.service: Failed with result 'exit-code'.
Sep 01 14:30:50 cp1 systemd[1]: Failed to start MySQL Community Server.
-- Subject: Unit mysql.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit mysql.service has failed.
--
-- The result is RESULT.
Sep 01 14:30:51 cp1 systemd[1]: mysql.service: Service hold-off time over, scheduling restart.
Sep 01 14:30:51 cp1 systemd[1]: mysql.service: Scheduled restart job, restart counter is at 5.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Automatic restarting of the unit mysql.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
Sep 01 14:30:51 cp1 systemd[1]: Stopped MySQL Community Server.
-- Subject: Unit mysql.service has finished shutting down
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit mysql.service has finished shutting down.
Sep 01 14:30:51 cp1 systemd[1]: mysql.service: Start request repeated too quickly.
Sep 01 14:30:51 cp1 systemd[1]: mysql.service: Failed with result 'exit-code'.
Sep 01 14:30:51 cp1 systemd[1]: Failed to start MySQL Community Server.
-- Subject: Unit mysql.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit mysql.service has failed.
--
-- The result is RESULT.

[2]+ Stopped journalctl -xe

and saw that permission was denied for mysql-server to change to /var/lib//mysql. I then checked the permissions on the two folders, /var/lib/mysql and /var/lib/mysql.old and found that the user ID for the newly installed /var/lib/mysql (now mysql.old) is 'MySQL Server' and on the /var/lib/mysql (the one from my system backup) is root. There is no user named 'MySQL Server' in my new system. The default user for mysql-server is root according to the documentation. So my question here is how to proceed? What do I need to change and where? Thanks for any help.

Smaller Installer Size for Third World Countries (2 replies)

$
0
0
Hi, I'm a developer from Indonesia,\

we are specialized in making electronic medical record for clinics and hospital here. The problem that i have with mysql is that the installer size is gigantic, its hard to distribute 500mb of files using the internet that we have here.

do you have barebone mysql installer + configuration manager only for spesific version of mysql? for example version 5.7.31

always report : Got an error reading communication packets (1 reply)

$
0
0
i have compiled mysql 5.7.30 on CentOS8.2 ( gcc 8.3.1 20191121) , and it can start successfully . but when i login as root (login first time) , it always report error as below:

Got an error reading communication packets

in the err log file, only this error reported. the others are Notes .

i have stopped the firewall , restart OS, restart mysql service , even recompiled it in new enviriment ,use /etc/my.cnf , or not use my.cnf, etc, but the same error is reported all the time.

how can i fixed it ? what should i do next ?

thanks .

Mac OS 10.15.6 (19G2021) Catalina: Moving my MySQL data to an external disk (no replies)

$
0
0
Hello,

I am running Mac OS 10.15.6 Catalina on my laptop and I have MySQL mysql-8.0.21-macos10.15-x86_64 running.

I installed mysql-8.0.21-macos10.15-x86_64 through the DMG installer and I can start and stop MySQL with the preference pane in System Preferences.

I want to store my MySQL data on an external hard disk and continue running MySQL.

Please note: I have unchecked "Ignore ownership on this volume" on my hard disk -- lets call my external hard disk volume as mydisk

I did the following:

1) I copied my /usr/local/mysql-8.0.21-macos10.15-x86_64 directory to /Volumes/mydisk/mysql

I copied using ditto so I preserved permissions and ownership.

2) I stopped the MySQL service in the instance tab of the preferences pane

3) I went to the configuration tab of the preference pane and replaced /usr/local/ prefixes with /Volumes/mydisk/

Please note: I have not kept a Configuration File, so that option is unchecked.

I have kept the Base Directory, Data Directory, Plugin Directory, Keyring Data File, Error Log, and PID File enabled and the paths have the new prefix as I describe in 3)

4) I clicked Apply

5) I go back to the instance tab and click Start MySQL server, but the server does not start.

I am unsure what is going wrong, and I'm not sure how to debug the problem..

Please advise me how to proceed, and please let me know if you need any more information.

Please note that when I installed MySQL, I did not use the SHA1 passwords option.

Thank you!!

Best regards,

- Vihan

"[Note] Failed to start slave threads for channel ''" message in err file (1 reply)

$
0
0
Greetings,

A new mysql 5.7.31 host (CentOS 7.7) created - copying from another existing host.

Issued "reset master" and "reset slave" commands, removed the auto.conf file, edited the /etc/my.cnf file and restarted the host.
Everything is fine and clear , but the following message appears after each MySQL restart :
[Note] Failed to start slave threads for channel ''

Since it's a NOTE (not warning/error) - it seems that no special problems.
However, i don't like to leave/see any "Failed" notes in err file.

Any suggestions for how to get rid from that message ?

Best regards,
Avi Vainshtein
DBA

Plugin 'unix_socket' is not loaded after MariaDB replacement!!! (1 reply)

$
0
0
Hello,
On Debian, I tried to replace MariaDB by MySQL 5.7 with command:

apt install mysql-server

But I am stuck to mysql_secure_installation with:

Error: Plugin 'unix_socket' is not loaded

I tried to add plugin-load-add=auth_socket.so to /etc/mysql/mysql.conf.d/mysqld.cnf but it does not solve my problem.

Thanks,

Impossible ? Reinstall Mysql windows 10 ? (no replies)

$
0
0
Hi Guys

Seen many, some 10 year old posts about inability to reinstall unless reformat ...

Is it still the case complete uninstall is not possible?

Thanks guys

MySQL, MariaDB, InfiniDB on same server (1 reply)

$
0
0
Hi experts,

I apologize upfront because I am a newbie to installation, maybe seasoned in db handling but when it comes to installing I click "Yes, let us hope it works"

Straight to the point: I need to join three dbs currently running on different servers in production into a dev environment on another server. It might be not nice but the CEO said so.

OS: Ubuntu 18.04.1
Rows processed daily: <1M
No clobs, blobs or other performance issues

First: plain MySQL 5.7.31
Second: MariaDB 10.3.24
Third: InfiniDB, which I understand is another instance of MySQL 5.1.73 (At least 5.1.73 is the current version which should be kept if possible)

What do you think will be the best/easiest way to proceed?

Thanks a lot for any insights

Peter

Unable to install MySQL on macOS Catalina (no replies)

$
0
0
I download and install MySQL. I go to the MySQL Pane in System Preferences. Although I expected MySQL to be running, it isn't. If I click on "Start MySQL Server" I get the error message "legacyLoader wants to make changes", but when I enter my system password nothing happens.

I tried manually loading the launchd file with
sudo launchctl load -F com.oracle.oss.mysql.mysqld.plist

Now in the MySQL System Preferences Pane I see the two red indicators flashing momentarily green, so MySQL is at least being awakened but appears to be quickly dying.

I haven't found any posts that help with my particular problem(s). Any assistance would certainly be appreciated.
Viewing all 7242 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>