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

Move data directory on Windows (2 replies)

$
0
0
I setup a new server, running 5.6.

I want to move the default data folder to a faster disk. Some google searches say to move the data folder and update the location in the conf file. So I changed it like this:

#datadir=C:/ProgramData/MySQL/MySQL Server 5.6/Data
datadir=I:/Data

I moved all the contents of the old data file (after shutting down the server) and started back up.

No luck.

I get this:

[Warning] InnoDB: Cannot open table mysql/slave_master_info from the internal data dictionary of InnoDB though the .frm file for the table exists. See http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting.html for how you can resolve the problem.
[Warning] Info table is not ready to be used. Table 'mysql.slave_master_info' cannot be opened.
[Warning] InnoDB: Cannot open table mysql/slave_worker_info from the internal data dictionary of InnoDB though the .frm file for the table exists. See http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting.html for how you can resolve the problem.
[Warning] InnoDB: Cannot open table mysql/slave_relay_log_info from the internal data dictionary of InnoDB though the .frm file for the table exists. See http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting.html for how you can resolve the problem.
[Warning] Info table is not ready to be used. Table 'mysql.slave_relay_log_info' cannot be opened.
[ERROR] Event Scheduler: Failed to open table mysql.event
[ERROR] Event Scheduler: Error while loading from disk.
[Note] Event Scheduler: Purging the queue. 0 events
[ERROR] Aborting

I know it is accessing the new data folder, becuase it updates the error log there. What am I missing?

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) (1 reply)

$
0
0
I am new to mysql. I am having the above error. My program works fine on the test server, but when I moved it to production I get the above message. I have verified the odbc's are the same on both servers. This is the first time we have added a new database to the production environment. I have reviewed the various boards and find the answers somewhat confusing and contradictory. I can access the production database via MySQL and via PhpMyAdmin. Yet it fails when the application tries to connect. Can someone give me some direction on how to systematically resolve this? Many thanks.
R. Warren

Rewrite of a Old MYSql Statement (1 reply)

$
0
0
Hello

I have a MYSQL select statement which works fine with MySql 5.0, however isn't compatible with the latest version of Mysql - 5.6

Is it possible to rewrite to remove the "*" which I believe to be the problem

Any suggestions / assistance would be apprciated

SELECT `crmnow_pdf_fields`.pdffieldname AS name, `crmnow_pdfcolums_sel`.pdftaxmode AS taxmode, `crmnow_pdfcolums_sel` . * AS selected, `crmnow_pdfcolums_active`.position AS active, crmnow_pdf_fields.quotes_g_enabled AS group_enabled, crmnow_pdf_fields.quotes_i_enabled AS individual_enabled
FROM `crmnow_pdfcolums_sel`
INNER JOIN crmnow_pdfcolums_active ON ( crmnow_pdfcolums_active.pdfmodulname = `crmnow_pdfcolums_sel`.pdfmodul )
INNER JOIN crmnow_pdf_fields ON crmnow_pdfcolums_active.pdftaxmode = `crmnow_pdfcolums_sel`.pdftaxmode
WHERE pdfmodul = 'Quotes'
AND `crmnow_pdf_fields`.pdffieldname = 'Position'

Thank You

Database Friendly Description (no replies)

$
0
0
I am using MySQL Work Bench and I have several DBs

Is there are way to have some sort of friendly name for the DB?

I don't want to rename the database as everything is created automatically and there are just to many dependencies I would just rather have some friendly name like Production or Test be visible so I (and others) know what is being worked on.

Did a search here and Google and nothing is coming up.

Thanks!

Joe

Installing MySQL on Windows 7 64bit with msi installer (3 replies)

$
0
0
I used the MySQL msi installer to install MySQL 5.6.24. The install went well and I was able to check that the install was ok by using the command show databases; in the command shell.
However, when I tried to find the bin and lib directories and the libmysql.lib and libmysql.dll I could not find them. I am aware that for Windows 7 the installer installs items under C:\ProgramData\ as well as C:\Program Files and C:\Program Files (86).
Is there a reason I can't find them?
I have ensured I can see hidden files and folders!

5.7.7 "Apply Server Configuration" errors and more errors (no replies)

$
0
0
We need some help on initial server configuration after a fresh install of 5.7.7 on our Windows 2008R2 64bit server.

We run all installation and config steps as the highest local administrator possible.

Please read this log file and let us know where we went wrong:

Beginning configuration step: Stopping Server [if necessary]
Ended configuration step: Stopping Server [if necessary]

Beginning configuration step: Writing configuration file
Ended configuration step: Writing configuration file

Beginning configuration step: Updating firewall
Ended configuration step: Updating firewall

Beginning configuration step: Adjusting Windows service [if necessary]
Attempting to grant Network Service require filesystem permissions.
Granted permissions.
Adding new service
New service added
Ended configuration step: Adjusting Windows service [if necessary]

Beginning configuration step: Initializing Database [if necessary]
Deleting Data folder shipped
Attempting to run MySQL Server with --Initialize-insecure
Running process: C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe --defaults-file="C:\ProgramData\MySQL\MySQL Server 5.7\my.ini" --initialize-insecure=on --console
Waiting for the server stops: C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe --defaults-file="C:\ProgramData\MySQL\MySQL Server 5.7\my.ini" --initialize-insecure=on --console
The attempt to initialize the database Failed
Ended configuration step: Initializing Database [if necessary]

Beginning configuration step: Starting Server
Starting MySQL as a service
Cannot start service MySQL57 on computer '.'.
Ended configuration step: Starting Server

Then we receive this windows stop up error
"THe procedure entry point: TryAcquireSRWLockExclusive could not be located in the dynamic link library KERNAL32

and it craps out completely with mysqld.exe has stopped working and we are left with a half baked, unconfigured system.

mysqld.service and redhat 7 systemctl (no replies)

$
0
0
I am trying to get mysql to run as a service via systemctl. I have never had any issues getting it to run under service command but now I cannot get it to run under systemctl. I thought it had to do with using chroot but even that doesn't seem to be the problem.

Here is my mysqld.service file:

[Unit]
Description=MySQL Community Server
After=network.target
After=syslog.target

[Install]
WantedBy=multi-user.target
Alias=mysql.service

[Service]
# Start main service
ExecStart=/usr/share/mysql/mysql.server start
ExecStop=/usr/share/mysql/mysql.server stop

# Give up if ping don't get an answer
TimeoutSec=600

Restart=always
PrivateTmp=false

If I run the ExecStart command by hand all is good -- just wont start via systemctl

I get the following error:

mysqld.service - MySQL Community Server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; disabled)
Active: failed (Result: start-limit) since Fri 2015-04-24 08:22:37 PDT; 1min 31s ago
Process: 10542 ExecStop=/usr/share/mysql/mysql.server stop (code=exited, status=0/SUCCESS)
Process: 9922 ExecStart=/usr/share/mysql/mysql.server start (code=exited, status=1/FAILURE)
Main PID: 9922 (code=exited, status=1/FAILURE)

Apr 24 08:22:37 willard systemd[1]: Unit mysqld.service entered failed state.
Apr 24 08:22:37 willard systemd[1]: mysqld.service holdoff time over, scheduling restart.
Apr 24 08:22:37 willard systemd[1]: Stopping MySQL Community Server...
Apr 24 08:22:37 willard systemd[1]: Starting MySQL Community Server...
Apr 24 08:22:37 willard systemd[1]: mysqld.service start request repeated too quickly, refusing to start.
Apr 24 08:22:37 willard systemd[1]: Failed to start MySQL Community Server.
Apr 24 08:22:37 willard systemd[1]: Unit mysqld.service entered failed state.

Any help would be appreciated.

Backslashes in my.ini give problems while starting MySQL as a service (1 reply)

$
0
0
Good afternoon,
I have included MySQL installation in another installation procedure, hence my possibilities are limited.
I have added references towards internal directories in the file my.ini, as follows:
[mysqld]
basedir=$UM_10$
datadir=$UM_10$/data
wait_timeout=500000
sql-mode='NO_BACKSLASH_ESCAPES'
[WinMySQLadmin]
Server=$UM_10$/bin/mysqld-nt.exe

I have installed MySQL in the directory "C:\brol" and I have used "C:\brol" as $UM_10$ entry, but this gives problems:
First, my.ini changes into:
[mysqld]
basedir=C:\brol
datadir=C:\brol/data
wait_timeout=500000
sql-mode='NO_BACKSLASH_ESCAPES'
[WinMySQLadmin]
Server=C:\brol/bin/mysqld-nt.exe

and then, MySQL is not starting up.

After quite some investigation, I have found out that this is due to the "\b" which can be found in the directory name "C:\brol": it seems that "\b" is wrongly understood as "backspace", although I have mentioned the "NO_BACKSLASH_ESCAPES" entry, but this seems only to have effect while working with SQL commands.

Does anybody know if it is possible to tell MySQL not to interprete "\b" as a backspace, not only while working in SQL, but also basically while being started up?

Thanks
Dominique

innodb_buffer_pool_size doesn't change (no replies)

$
0
0
Hello together,


can someone tell me what i can do if the innodb_buffer_pool_size stays at the default of 128mb instead of the 3gb from my configfile ?
I also tried 3072M, 3145728K and 3221225472.

System:
Ubuntu Server 14.04
MySQL Server 5.6.24 (x64)


my.cnf:

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

[mysqld_safe]
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
nice = 0

[mysqld]
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
explicit_defaults_for_timestamp

# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
#bind-address = 127.0.0.1

log-error = /var/log/mysql/error.log

# Recommended in standard MySQL setup
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0

# * IMPORTANT: Additional settings that can override those from this file!
# The files must end with '.cnf', otherwise they'll be ignored.
#
!includedir /etc/mysql/conf.d/
innodb_read_io_threads = 64
innodb_log_file_size = 104857600
innodb_buffer_pool_load_at_startup
max_allowed_packet = 1G

innodb_buffer_pool_size = 3G

[mysqldump]
max_allowed_packet = 2147483648

Error on Install (no replies)

$
0
0
When I download and run MySQL Installer I get this ERROR message. What is it telling me?

"Unhandled exception has occurred in your application."

Frank

Apply Server Configuration Failing at "Updating Start Menu Link" (no replies)

$
0
0
I am sure this is a very simple issue. I am trying to use the MySQL Installer to update my server configuration (I am using Windows 8.1) and the configuration steps are successful up until the "Updating Start Menu Link" which is failing. Here is that portion of the log file:

Beginning configuration step: Updating Start Menu Link
Attempting to verify command-line client shortcut.
Failed to verify command-line client shortcut.
Object reference not set to an instance of an object.
Ended configuration step: Updating Start Menu Link

System Info:
MySQL Workbench Community (GPL) for Windows version 6.3.2 revision 0 build 444 (64 bit)
Cairo Version: 1.10.2
OS: Microsoft Windows 8.1
CPU: 4x Intel(R) Core(TM) i7-4600U CPU @ 2.10GHz, 7.9 GiB RAM
Active video adapter Intel(R) HD Graphics Family
Installed video RAM: -2016 MB
Current video mode: 1920 x 1080 x 4294967296 colors
Used bit depth: 32
Driver version: 10.18.10.3355
Installed display drivers: igdumdim64.dll,igd10iumd64.dll,igd10iumd64.dll,igdumdim32,igd10iumd32,igd10iumd32
Current user language: English (United States)

Oracle 5.6 Vs Percona 5.6: High CPU Utilization in Percona (no replies)

$
0
0
Though it is not directly related to Oracle Mysql 5.6, I am guessing some one can help me moving my inestigation in right direction:

We are in process of upgrading our (Percona) Mysql 5.5 mysql servers to Mysql 5.6. We have upgraded all our slaves except one.
However, we have observed that for the same workload, 5.6 slaves are consuming more user CPU.

CPU utlization on 5.5 slave continues to be lower. For comparison, we have setup an additional slave on Oracle's community Mysql 5.6. Here the cpu utilization is lower.

Does the percona Mysql 5.6 consumes more cpu than previous version (5.5) or Oracle community 5.6 ? Has anyone else observed similar behavior? In our environment this observation is consistent and reproducible. Certainly moving to Oracle Mysql 5.6 is one solution, let me know if anyone has idea how to resolve this or how to investigate it further. (Tracing mysqld daemon has not given any clue.)


Slave upgraded to Percona 5.6 (EST Timezone)


01:20:01 PM CPU %user %nice %system %iowait %steal %idle
01:20:01 PM all 10.97 0.00 0.05 0.19 0.00 88.79
01:30:01 PM all 11.20 0.00 0.06 0.01 0.00 88.73
01:40:01 PM all 9.48 0.00 0.08 0.02 0.00 90.41


Slave still on 5.5:

10:20:01 AM CPU %user %nice %system %iowait %steal %idle

10:20:01 AM all 0.26 0.00 0.04 0.39 0.00 99.31
10:30:01 AM all 0.23 0.00 0.10 0.08 0.00 99.58
10:40:01 AM all 0.32 0.00 0.05 0.17 0.00 99.47



Slave upgraded to Oracle Mysql 5.6:

10:20:01 AM CPU %user %nice %system %iowait %steal %idle

10:20:01 AM all 0.26 0.00 0.04 0.39 0.00 99.31
10:30:01 AM all 0.23 0.00 0.10 0.08 0.00 99.58
10:40:01 AM all 0.32 0.00 0.05 0.17 0.00 99.47
Tags: None

Slow query response following server upgrade (5.1 to 5.6) (no replies)

$
0
0
Hi,

I'm in the process of upgrading my MySQL Database server from a Windows 2003 server that runs MySQL 5.1 to a Windows 2012 server that runs MySQL 5.6 but I'm having problem with some queries running extremely slowly and I can't seem to locate the problem. The following applies:

- The new server has more memory and more processing power than the old one
- I've increased the size of the innodb_buffer_pool_size, innodb_log_file_size, innodb_log_buffer_size, query_cache_size, table_open_cache, tmp_table_size, myisam_sort_buffer_size, key_buffer_size to match or, in most cases, be greater than the old server.
- I've tried increasing join_buffer_size and sort_buffer_size but the query doesn't run any quicker
- I've set the innodb_data_home_dir, again with no improved results

When I run the query and view the Performance Dashboard in Workbench, this is what I see: LINK

Nothing in that suggests a problem to me, but the query is taking 300 seconds to run on the 2012 server, whereas on the 2003 (MySQL 5.1) server it takes 2 seconds. I've noticed that when I run an EXPLAIN on the query, the two servers give different outputs, but I don't understand enough about them to fix it. Here they are (I've hidden the table and ref columns for security reasons):

2003 server (fast): LINK
2012 server (slow): LINK

I especially feel the Primary/Derived select types may be the way to go whereas the new server all the select types are Simple.

So my question is, does anyone know why it may be taking so long? Will the select types have anything to do with it?

I've done a lot of searching online but haven't come across anything as yet. I did read that 5.6 can be a little slower than 5.1 for running queries but 300 seconds compared to 2 seconds means something is very wrong.

I would appreciate any help whatsoever.

Thanks.

android conection (no replies)

$
0
0
how we can conect sql with android app using jquery mobile ?

xampp (no replies)

$
0
0
musql services is not running in xamp how i will activate them ?

MySQL Workbench 6.3.3 crashes after opening MWB file on Mac 10.8.5 (no replies)

$
0
0
While a MWB file (including the sakila_full.mwb coming with the application) MySQL Workbench 6.3.3 crashes after opening the model window.

When attempting to open the same file using the command line, the output is:

My-MacBook-Pro:~ root$ sudo /Applications/MySQLWorkbench.app/Contents/MacOS/MySQLWorkbench --model /Applications/MySQLWorkbench.app/Contents/SharedSupport/sakila_full.mwb
Ready.

2015-05-20 16:52:43.826 MySQLWorkbench[6107:a07] TODO: restore edit menu
dyld: lazy symbol binding failed: Symbol not found: ___sincos_stret
Referenced from: /Applications/MySQLWorkbench.app/Contents/MacOS/../Frameworks/libcairo.2.dylib
Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: ___sincos_stret
Referenced from: /Applications/MySQLWorkbench.app/Contents/MacOS/../Frameworks/libcairo.2.dylib
Expected in: /usr/lib/libSystem.B.dylib

2015-05-20 16:52:45.700 MySQLWorkbench[6107:a07] NSExceptionHandler has recorded the following exception:
NSUncaughtSystemExceptionException -- Uncaught system exception: signal 5
Stack trace: 0x10c9837ba 0x7fff870c490a 0x402a3492d9c5e0d0 0x7fff69ddc048 0x7fff900168ee 0x10f498028 0x10a7659bc 0x10a763f1e 0x10a763de7 0x10a73c4f7 0x10a74d800 0x10a73f3e3 0x10a73f4da 0x10a9b95be 0x10a757f08 0x10a757bbc 0x10c3fbceb 0x7fff86468064 0x7fff864666c1 0x7fff86466ad9 0x7fff86466ad9 0x7fff86466ad9 0x7fff86466ad9 0x7fff86466ad9 0x7fff86466ad9 0x7fff864646f2 0x7fff86465a44 0x7fff86465a44 0x7fff86464143 0x7fff8645fd6d 0x7fff86429c93 0x7fff864291cc 0x7fff869f4901 0x7fff8b4fd417 0x7fff8b4fd381 0x7fff8b4d87b8 0x7fff8b4d80e2 0x7fff8f371eb4 0x7fff8f371c52 0x7fff8f371ae3 0x7fff86426533 0x7fff86425df2 0x7fff8641d1a3 0x7fff863c1bd6 0x10a1e0ce4 0x3
2015-05-20 16:52:45.701 MySQLWorkbench[6107:a07] NSExceptionHandler has recorded the following exception:
NSUncaughtSystemExceptionException -- Uncaught system exception: signal 11
Stack trace: 0x10c9837ba 0x7fff870c490a 0x7fff86c4dc36 0x7fff69dda138 0x7fff69ddc048 0x7fff900168ee 0x10f498028 0x10a7659bc 0x10a763f1e 0x10a763de7 0x10a73c4f7 0x10a74d800 0x10a73f3e3 0x10a73f4da 0x10a9b95be 0x10a757f08 0x10a757bbc 0x10c3fbceb 0x7fff86468064 0x7fff864666c1 0x7fff86466ad9 0x7fff86466ad9 0x7fff86466ad9 0x7fff86466ad9 0x7fff86466ad9 0x7fff86466ad9 0x7fff864646f2 0x7fff86465a44 0x7fff86465a44 0x7fff86464143 0x7fff8645fd6d 0x7fff86429c93 0x7fff864291cc 0x7fff869f4901 0x7fff8b4fd417 0x7fff8b4fd381 0x7fff8b4d87b8 0x7fff8b4d80e2 0x7fff8f371eb4 0x7fff8f371c52 0x7fff8f371ae3 0x7fff86426533 0x7fff86425df2 0x7fff8641d1a3 0x7fff863c1bd6 0x10a1e0ce4 0x3


What went wrong with the tool installation???

Overriding histignore instead of appending? (1 reply)

$
0
0
I'm doing some work where I have to look at and perform SQL commands on the T_PASSWORDHISTORY table a lot, and the mysql command line tool isn't saving any of my commands in the history, because they match the default histignore pattern. I know I can use --histignore (or MYSQL_HISTIGNORE), but that just appends my patterns to the default patterns. Is there any way to override/delete the default patterns? I effectively have no command line history while working with that table and it's kind of driving me nuts.

Thanks,
Brian

Never Used MySql (no replies)

$
0
0
Never used MySQL and need a lot of help to get started.
Currently using Access 2010.

What do I need to download and install to use to import my data and to create forms to manipulate this data?

Enable Remote Connection (Frustrating) (1 reply)

$
0
0
I have been using various versions of MySQL over the past 4 years. The latest version that I've installed is 5.6 on Windows 7 Professional. Whereas in the past I usually didn't have too much of a problem creating a user that could connect from any client machine, on this latest instance I can't get it to work. I've tried creating the user using both the MySQL Workbench and by using a GRANT command at the command line. Nothing works. When I try to connect remotely using the MySQL Workbench I get the standard message saying "can't connect blah blah blah".

I've tried many variations of the GRANT command, I run "FLUSH PRIVILEGES", I've restarted the service, etc. etc.

If you have any advice it is very much appreciated!

CONNECT DATA BASE IN PHP (no replies)

Viewing all 7170 articles
Browse latest View live




Latest Images