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

Sync database on client laptop (1 reply)

$
0
0
I've been trying to get motivated enough to start a personal project that will hopefully teach me enough to where I can take what I have created, and use it as a skill set when looking for side work setting up small databases' for small office environments requiring sharing data for reports and inventory management or even project management.

I would like to setup a MySQL database on my hosted domain and also install the same database on a client computers or laptops which will sync with the online database, thus keeping all the data current across all client machines via internet connection.

I have my own, one man computer business and keeping track of what I do is a nightmare. I did set up a rather large MS ACCESS database and its nice, however, i need access to it while I'm mobile so I can just update information live while I'm working--this seems impossible. I would like to build a customer database with all my clients and the jobs I do, parts I buy and my expenses and be able to just boot my LINUX laptop and update my job information locally while I'm working and be done with it. I should be able to go to any web browser and log into it from any computer OR have a copy of the database on my laptop always available with the ability to sync with the online data....

Quickbooks and Quicken....and even any basic email client such asThundrbird all can do this....

I want my own database to do the same thing....why is this such a guarded top secret issue.....only seems like its common sense that people would want a wizard that would step through setting this up, with VPN and certs and all...

Of course this would have a PHP built UI

am I crazy for wanting this...

Thanks guys..

Choppie

Move Data directory and Upgrade version (3 replies)

$
0
0
Hello,

I have several schemas created with the MySQL version that was installed on my laptop before I had the Windows 10 crash. It was MySQL 5.1.73 probably, because I still have its MSI installer in my HD.

I have installed MySQL 5.7 Community version and I would like to change the driver and folder where MySQL data is saved to and bring those old schemas to the new installation.

I have no any MySQL backup, is that possible ? If I change my.ini and set datadir to the old datadir folder the MySQL service fail to start.

Is my task possible to do ?

Thank you very much.

adding Mysql 8.0 Apt repo does not show packages... (1 reply)

Access denied for user 'root'@'localhost' (4 replies)

$
0
0
Why is my access being denied?
mysql -u root -p
Enter password: *********
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

I installed MySQL 5.7.17 Community on Windows 10.
Used the sequence described in the Ref Manual in 2.11.1 Upgrading MySQL and the section titled Performing a Logical Upgrade. Also followed several cross-references in that section.

1- Reviewed 2.11.1
2- Used MySQLDump to offload my data.
3- Shut down server.
Removed the software using Windows functions. Removed old folders on hard drive.
4- Installed with the MySQL Installer.
5- Skipped initialize data directory. Section 2.3.7 says Installer does it.
6- Start server with mysqld_safe - ERROR mysqld_safe not recognized
So rebooted to start server.
7- Reset root password. The one I set during install was OK, so I skipped this.
8- Reloaded data. All OK. USED THE ROOT PASSWORD HERE.
9- Ran mysql_upgrade. Two messages but all went OK.
10 Shutdown and re-start. Re-booted (as mysqld_safe no good).

Tried to start mysql to define USERS and GRANTS and I got the ACCESS DENIED error.
Why did it work to reload the data and not here? What have I missed?

Thanks,
WillB

installing mysql on mac - two directories query. (no replies)

$
0
0
hello,

I'm new to MySQL and databases. I'm trying to get to grips with the deeper structure and I'm confused about why there are apparently two locations after installing MySQL and I was hoping someone could clarify what each is for?

I have this:

/usr/local/mysql-5.7.17-macos10.12-x86_64/

and this:

/usr/local/mysql/

Why are there two mySQL related directories in the local folder? In terminal access the database by doing this to login: cd ./usr/local/mysql/bin and then typing: mysql -u root -p 'password'.

However if the database is stored in the data folder and everything apparently seems to be happening in the /usr/local/mysql folder, what is this for:/usr/local/mysql-5.7.17-macos10.12-x86_64/

It's been bugging me for a day now and I've not been able to find anything online other than the bottom of this URL: https://dev.mysql.com/doc/refman/5.6/en/osx-installation-pkg.html
, which doesn't really make sense to me

thanks for your help! :)

SSL Connection warning on every SQL call (1 reply)

$
0
0
Have just updated from 5.5 to 5.7.17.

Every time one of my Java programs issues a Select or Update to MySQL, I get a long-winded WARN message:
Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.

While I understand the idea of the message, the "fixes" are above my technical prowess.

1) Where do I set the parameter "useSSL=false"? I tried putting it in my.ini but got errors from MySQL that it was an invalid parameter.
2) This is a system where all users come in through Remote Desktop Connection. If I do set useSSL=false are there security concerns?

Thank you.
WIllB

mysqld --initialize (Errcode: 17 - File exists) (2 replies)

$
0
0
hi,
i install mysql on Ubuntu 16.04.1 LST

after installation, i change the DB directory.

when i run mysqld --initialize, com output "(Errcode: 17 - File exists)" !

the dirictoru ist mysql owner and grup, permission is 0755 !

when i delet the therictori, is the errorcode 13, permission denedy !

thasnk you for you help !

Philip



my my.cnf
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock

# Here is entries for some specific programs
# The following values assume you have at least 32M ram

# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0

[mysqld]
#
# * Basic Settings
#
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /local_data/db/mysql
tmpdir = /tmp
lc-messages-dir = /usr/share/mysql
skip-external-locking
explicit_defaults_for_timestamp = 1

Upgrading from MySql server from 5.6 to 5.7. (1 reply)

$
0
0
I am attempting to do an in-place upgrade for MySQL server from 5.6.31 to 5.7.14.
I have with me .msi files for 5.7.14 and 5.6.35
when I execute the .msi files it detects the previously installed version of the server and provides me options to remove, upgrade etc.
When I attempt to upgrade from 5.6. to 5.6.35, through the .msi file of 5.6.35 it happens seamlessly, whereas for 5.7.14 I am confronted with a message stating "none of the products have upgrades available".
http://dev.mysql.com/doc/refman/5.7/en/upgrading.html - in this link it clearly states that "Upgrading one release level is supported."

The .msi for 5.7.14's server is present in "C:\ProgramData\MySQL\MySQL Installer for Windows\Product Cache" folder at the time when I attempt to upgrade. then why is it giving me the error message?

Can you please help me do an in-place upgrade, up a release level, without having to uninstall the existing version and reinstalling the new one (without loosing the existing database)?

Installing MySQL (no replies)

$
0
0
Hi All,

I'm after a little help and i got advice from the sales team to pop into here for some advice.

I work in a school and have asked to be to install mysql onto 25 machines for a computer science class.

not knowing much about how the software works. I have learnt i need serveal bits of MYSQL installing on each amchin (server, shell)

but if im being honest apart from installation im not sure how to set the software. how do i set server up, does this need to be set up on every machine (28 in total so would be time consuming)

or is there a emulator out there that would make this process easier and get me to the point i need for the students to use mysql.

Im unsure what they are needing it for apart from computer science.

Thanks in advance and apologies if this doesn't make any sense.

Thanks
Chris

getting erro while starting mysql (no replies)

$
0
0
hi all,

m getting below mention error while starting mysql on my local machine.

kinldy help me to short out this.

170113 22:39:09 mysqld_safe Starting mysqld daemon with databases from /disk1/mysqldata
2017-01-13 22:39:09 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2017-01-13 22:39:09 0 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.6.31-log) starting as process 12601 ...
2017-01-13 22:39:09 12601 [Note] Plugin 'FEDERATED' is disabled.
/usr/local/mysql/bin/mysqld: Table 'mysql.plugin' doesn't exist
2017-01-13 22:39:09 12601 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
2017-01-13 22:39:09 12601 [Note] InnoDB: Using atomics to ref count buffer pool pages
2017-01-13 22:39:09 12601 [Note] InnoDB: The InnoDB memory heap is disabled
2017-01-13 22:39:09 12601 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2017-01-13 22:39:09 12601 [Note] InnoDB: Memory barrier is not used
2017-01-13 22:39:09 12601 [Note] InnoDB: Compressed tables use zlib 1.2.3
2017-01-13 22:39:09 12601 [Note] InnoDB: Using Linux native AIO
2017-01-13 22:39:09 12601 [Note] InnoDB: Using CPU crc32 instructions
2017-01-13 22:39:09 12601 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2017-01-13 22:39:09 12601 [Note] InnoDB: Completed initialization of buffer pool
2017-01-13 22:39:09 12601 [Note] InnoDB: Highest supported file format is Barracuda.
2017-01-13 22:39:09 12601 [Note] InnoDB: 128 rollback segment(s) are active.
2017-01-13 22:39:09 12601 [Note] InnoDB: Waiting for purge to start
2017-01-13 22:39:09 12601 [Note] InnoDB: 5.6.31 started; log sequence number 1600677
2017-01-13 22:39:09 12601 [ERROR] --gtid-mode=ON or UPGRADE_STEP_1 or UPGRADE_STEP_2 requires --log-bin and --log-slave-updates
2017-01-13 22:39:09 12601 [ERROR] Aborting

2017-01-13 22:39:09 12601 [Note] Binlog end
2017-01-13 22:39:09 12601 [Note] Shutting down plugin 'partition'
2017-01-13 22:39:09 12601 [Note] Shutting down plugin 'ARCHIVE'
2017-01-13 22:39:09 12601 [Note] Shutting down plugin 'BLACKHOLE'
2017-01-13 22:39:09 12601 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2017-01-13 22:39:09 12601 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2017-01-13 22:39:09 12601 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2017-01-13 22:39:09 12601 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2017-01-13 22:39:09 12601 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2017-01-13 22:39:09 12601 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2017-01-13 22:39:09 12601 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2017-01-13 22:39:09 12601 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2017-01-13 22:39:09 12601 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2017-01-13 22:39:09 12601 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2017-01-13 22:39:09 12601 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2017-01-13 22:39:09 12601 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2017-01-13 22:39:09 12601 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2017-01-13 22:39:09 12601 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2017-01-13 22:39:09 12601 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2017-01-13 22:39:09 12601 [Note] Shutting down plugin 'INNODB_METRICS'
2017-01-13 22:39:09 12601 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2017-01-13 22:39:09 12601 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2017-01-13 22:39:09 12601 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2017-01-13 22:39:09 12601 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2017-01-13 22:39:09 12601 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2017-01-13 22:39:09 12601 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2017-01-13 22:39:09 12601 [Note] Shutting down plugin 'INNODB_CMPMEM'
2017-01-13 22:39:09 12601 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2017-01-13 22:39:09 12601 [Note] Shutting down plugin 'INNODB_CMP'
2017-01-13 22:39:09 12601 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2017-01-13 22:39:09 12601 [Note] Shutting down plugin 'INNODB_LOCKS'
2017-01-13 22:39:09 12601 [Note] Shutting down plugin 'INNODB_TRX'
2017-01-13 22:39:09 12601 [Note] Shutting down plugin 'InnoDB'
2017-01-13 22:39:09 12601 [Note] InnoDB: FTS optimize thread exiting.
2017-01-13 22:39:09 12601 [Note] InnoDB: Starting shutdown...
2017-01-13 22:39:11 12601 [Note] InnoDB: Shutdown completed; log sequence number 1600687
2017-01-13 22:39:11 12601 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2017-01-13 22:39:11 12601 [Note] Shutting down plugin 'CSV'
2017-01-13 22:39:11 12601 [Note] Shutting down plugin 'MEMORY'
2017-01-13 22:39:11 12601 [Note] Shutting down plugin 'MRG_MYISAM'
2017-01-13 22:39:11 12601 [Note] Shutting down plugin 'MyISAM'
2017-01-13 22:39:11 12601 [Note] Shutting down plugin 'sha256_password'
2017-01-13 22:39:11 12601 [Note] Shutting down plugin 'mysql_old_password'
2017-01-13 22:39:11 12601 [Note] Shutting down plugin 'mysql_native_password'
2017-01-13 22:39:11 12601 [Note] Shutting down plugin 'binlog'
2017-01-13 22:39:11 12601 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete

170113 22:39:11 mysqld_safe mysqld from pid file /disk1/mysqldata/templatecentos66base.techmahindra.com.pid ended
[root@templatecentos66base disk1]#


Thanks
Pawan Giri

Installing 5.6 instead of 5.7 for JIRA and Confluence (no replies)

$
0
0
JIRA and Confluence do not support MySQL 5.7
I cannot install MySQL 5.6 using yum.
Can someone point me to the documentation on installing 5.6?
I tried to download the server and client rpms and they install successfully, but when I try to connect or launch mysql, I receive "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

MySQL access issues after clean install of Ubuntu 16.04 over 14.04 (no replies)

$
0
0
I recently did a clean install of Ubuntu 16.04 x64 over 14.04. I have a complete system backup of 14.04 on a USB drive. The install included MySQL 5.7.16. I was on MySQL 5.5 on 14.04. In order to migrate my databases, I used mysqldump on 14.04 and restored them into 16.04. That worked. However, I have access issues on MySQL 5.7.16.

I had 2 users defined on MySQL 5, root and me. When I tried to login to MySQL with either root or my user name, I got an access denied. I tried root with no password, but access was denied. After much struggling, I actually was able to log into MySQL as root using the password that had been mine on MySQL 5.5. I was not able to log into MySQL with my user name.

I tried to change the password for root using

mysql> update user set password='newpassword' where user='root';

I received an ok response. I then used Flush Privileges and logged out. I could not log back in as root with the new password, but I could log in as root with my old password.

While logged in as root, I tried to change my password, but I received an error saying there was no matching row in mysql.users.

I then ran this query:

SELECT user, host, authentication_string from mysql.users

There is a row with my name, but I cannot perform any operations on it: alter, drop, set, etc.

Because I did a clean install, I had to selectively copy files related to certain packages into the new packages such as profiles for Thunderbird and Firefox as well as other software. I am wondering if I inadvertently copied something into MySQL's environment.

Are there any actions I can take to resolve this, or do I need to remove and re-install MySQL?

service mysql start fails (1 reply)

$
0
0
I installed MySQL from a binary on a RedHat6 server in a custom location, /usr/local/adm.

I can start it using the following command:
/usr/local/adm/mysql/bin/mysqld_safe --defaults-file=/usr/local/adm/mysql/my-adm.cnf --ledir=/usr/local/adm/mysql/bin &

I cannot start it running service mysql start. Here is the output:
Starting MySQL
/usr/local/adm/mysql/bin/mysqld_safe --defaults_file=/usr/local/adm/mysql/my-adm.cnf --ledir=/usr/local/adm/mysql/bin >/dev/null &

The server quit without updating PID file (/usr/local/adm/mysql/data/mysql-adm.pid).

The 2nd line of the output is the command being executed in start section of /etc/init.d/mysql

remote access (no replies)

$
0
0
Hello everyone.

This is my problem. Please help.

==========================================

MySQL installed on AWS instance UBUNTU 16.04

port 3306 OPEN ON ISTANSE



part of my.cnf file
===============================

[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock

# Here is entries for some specific programs
# The following values assume you have at least 32M ram

# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0

[mysqld]
#
# * Basic Settings
#
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
lc-messages-dir = /usr/share/mysql
bind-address = 0.0.0.0

===============================

No more bind-address in any file global search





+-------------------------------------------------------------------------------------------------------------------------------------------+
| Grants for PwxxxxxxxRemoute@% |
+-------------------------------------------------------------------------------------------------------------------------------------------+
| GRANT ALL PRIVILEGES ON *.* TO 'PwxxxxxxxRemoute'@'%' IDENTIFIED BY PASSWORD '*E0C998C34C3Cxxxxxx3DDA118ED78F0' WITH GRANT OPTION |
+-------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

mysql>


C:\Users\User>telnet XXX.XXX.XXX.XXX 3306
Connecting To XXX.XXX.XXX.XXX...Could not open connection to the host, on port 3306
:Connect failed


Any Ideas?

mysqld binary from yum repository is 250MB? (no replies)

$
0
0
Hello,

I have a CentOS 6.8 machine and enabled the mysql57-community-release repository. I installed the following packages and MySQL works great:

mysql-community-client.x86_64 5.7.17-1.el6 @mysql57-community
mysql-community-common.x86_64 5.7.17-1.el6 @mysql57-community
mysql-community-libs.x86_64 5.7.17-1.el6 @mysql57-community
mysql-community-libs-compat.x86_64 5.7.17-1.el6 @mysql57-community
mysql-community-server.x86_64 5.7.17-1.el6 @mysql57-community

However, I noticed that the server binaries are each more than 200MB in size:

-rwxr-xr-x 1 root root 250355311 Nov 28 08:35 /usr/sbin/mysqld
-rwxr-xr-x 1 root root 204545977 Nov 28 08:29 /usr/sbin/mysqld-debug

Are these legitimate binaries? They're enormous; I could almost understand the mysql-debug binary being large due to debug symbols, except it's actually smaller than the plain mysqld by 50MB!

[root@host /tmp]# md5sum /usr/sbin/mysqld
9665e96ae7afa92224dc1830be5bb526 /usr/sbin/mysqld
[root@host /tmp]# sha1sum /usr/sbin/mysqld
f447c48da767c422b2dd2301fff52fff1a98ea35 /usr/sbin/mysqld
[root@host /tmp]# md5sum /usr/sbin/mysqld-debug
cf3df7a67ca6afa86af616e6f7db4f7a /usr/sbin/mysqld-debug
[root@host /tmp]# sha1sum /usr/sbin/mysqld-debug
4930ecfcd2995543f3012e1aee7368a523570403 /usr/sbin/mysqld-debug

I don't get Google hits on any of these hashes, which also seems odd. Is there anyone else using the the mysql57-community-release repo who can confirm you have the same files?

How to install MySQL for ubuntu (no replies)

$
0
0
Hello,

I have installed MySQL for ubuntu, but it's not working properly. Anybody Tell Installation process Here..


Thanks

Upgrade from 5.0.95 to 5.7 (1 reply)

$
0
0
I'm starting to think that a problem I'm tracking between my LAMP server and a new install of Linux on my laptop might be a version difference problem between the client and server. Client contains the latest versions of MySQL and LAMP server older versions of the MySQL server.

Is it safe to upgrade the MySQL server on my CentOS 5.12 server MySQL 5.0.95 directly to 5.7?

ERROR 1123 installing group_replication plugin (no replies)

$
0
0
Hi, I have freshly installed MySQL 5.7.17 on my CentOS7 server. I tried to install group replication plugin "group replication.so" but I got an error.

mysql> INSTALL PLUGIN group_replication SONAME 'group_replication.so';
ERROR 1123 (HY000): Can't initialize function 'group_replication'; Plugin initia
lization function failed.

Can anybody help solve the problem?

Upgrading your MySQL Server Farm (no replies)

ERROR 1046 (3D000): No database selected (3 replies)

$
0
0
Hi,

I'm trying to set up group Replication. I have modified my.cfg as indicted in te manual and have installed the plugin witout any errors, I believe I could start group replication successfully. However, when the following commnand was entered, I got an error.

mysql> SELECT * FROM perfomance_schema_replication_group_members;
ERROR 1046 (3D000): No database selected

Any help?
Viewing all 7172 articles
Browse latest View live




Latest Images