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

http://www.wix.com/support/html5/ugc/f61f8d65-ff12-4a09-852a-7ef12acd3d05/41052920-ccdb-486c-90bf-f586c1016a13 (no replies)

$
0
0
www.wix.com/support/html5/ugc/f61f8d65-ff12-4a09-852a-7ef12acd3d05/41052920-ccdb-486c-90bf-f586c1016a13

How to configure my.cnf in Mysql 5.6.17? (no replies)

$
0
0
On production server(linux machine mysql 5.6.17), I tried to find my.cnf to change the system variables, but my.cnf was not in /etc/my.cnf location. It was in usr/ directory. Also that file contains only comments like -

# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M

Please tell me how I can set variables in my.cnf like -

innodb_buffer_pool_size = 200M
max_connections = 300

do I have to remove # before them, if yes, then what about other commented parameters? will they remain same(default) if I dont remove #?

And do I have to copy my.cnf from usr/ to etc/ directory?

MySQLfor ExcelConnection (no replies)

$
0
0
I downloaded the latest version of MySQL installer for windows. After installation what showed up in my workbench is MySQLfor Excel Connection instead of LOcal Instance MySQL. Please help. I need to download it properly for my database class. I am new to MySQL. I appreciate any help you can give.

http://www.reddit.com/r/l3tsonp4ksiw/comments/2sqmjw/ (no replies)

$
0
0
www.reddit.com/r/l3tsonp4ksiw/comments/2sqmjw/

mysql for windows download (no replies)

$
0
0
I downloaded the latest version of MySQL installer for windows. After installation what showed up in my workbench is MySQLfor Excel Connection instead of LOcal Instance MySQL. Please help. I need to download it properly for my database class. I am new to MySQL. I appreciate any help you can give.

http://www.reddit.com/r/l3tsonp4ksiw/comments/2ssewq/ (no replies)

$
0
0
www.reddit.com/r/l3tsonp4ksiw/comments/2ssewq/

http://www.reddit.com/r/tenghansad3h/comments/2sub5i/ (no replies)

$
0
0
www.reddit.com/r/tenghansad3h/comments/2sub5i/

http://www.reddit.com/r/sa1loyl3ntikan/comments/2supip/ (no replies)

$
0
0
www.reddit.com/r/sa1loyl3ntikan/comments/2supip/

binding ::1 in my.ini *still* binds 0.0.0.0 reported by NETSTAT (no replies)

$
0
0
On standard win7 64-bit, with IPv4 and IPv6 enabled my.ini values:

port=3306
bind-address = ::1

This should bind to only loopback, only in IPv6, however NETSTAT shows:

C:\>netstat -an |findstr 3306
TCP 0.0.0.0:3306 0.0.0.0:0 LISTENING
TCP [::1]:3306 [::]:0 LISTENING

Telnet shows a better story (the 0.0.0.0 is not really there?):

C:\>telnet 127.0.0.1 3306
(Seems like TCP connect failure)

Months ago I posted a bug about this, and yesterday it was triaged asking for more information and pointing me at the definition of INADDR_ANY in NETSTAT (irrelavant since ::1 is LOOPBACK **not** INADDR_ANY).

http://bugs.mysql.com/bug.php?id=72087

But... My response yesterday got no activity perhaps it'll be checked in another 6 months.

Desperately need help - move MAMP and mysql (no replies)

$
0
0
I had a Mac crash - but I was able to salvage the applications folder and jobs folder which contained my MAMP installation and development sites.

I need to move the old MAMP files on to the new mac and the new MAMP installation.

I copied the htdocs stuff and the Db folder over (MAMP/db/mysql/dbname) - and phpmyadmin can see the database.

Yet when I go to the local:8888/ directory for the transferred site I get the following error:

Error displaying the error page: Application Instantiation Error: Table 'ymlddartis.mbs9i_session' doesn't exist SQL=SELECT `session_id` FROM `mbs9i_session` WHERE `session_id` = '6a99e3f7011baf6d9d29de1b7d8d69ce' LIMIT 0, 1

Can anyone please help???

I was not able to access phpmyadmin on the old system and export the database because the system crashed and is being erased. So this is all I have to work with.

How could phpMyAdmin see the db tables yet not connect to the development site? What did I miss when transferring the MAMP files? Anyone?

Upgrade MySQL 5.1.73 to 5.X (no replies)

$
0
0
Hello to everyone,
i'm trying to upgrade MySQL 5.1.73 to 5.5 or 5.6, i followed your guide but i didn't do upgrade.

What have i done.
Stop MySQL Service
Remove MySQL Service
Backup my old mysql folder (c:\program files\mysql\mysql server 5.1)
Backup my mysql data (c:\documents and settings\allusers\mysql\data)
Extract from new mysql zip to c:\program files\mysql\mysql server 5.1 and overwrite all.
Create new MySQL Service

At this time if i start mysql service it works fine but i have a clean mysql with no databases.
So i tried to modify my.ini, i changed datadir to old data with all tables (c:\documents and settings\allusers\mysql\data), well.. Service is now stopped and if i want to restart service give me an error 1067..

Why? I need to use all old databases (mysql too where are stored all users, privileges and passwords).
What can i do?

Thank you

Disappearance of table partitons (ibd files) (no replies)

$
0
0
Hello !

I have the problem with MySQL partitions table disappering:

Here is some MySQL code:

SET GLOBAL innodb_file_per_table=1;

SET GLOBAL innodb_file_format=Barracuda;

CREATE TABLE IF NOT EXISTS `tblNewPricesData`(
`BateID` TINYINT UNSIGNED NOT NULL,
`SymbolID` MEDIUMINT UNSIGNED NOT NULL,
`AssesstmentDate` TIMESTAMP NOT NULL,
`DateOperation` DATE NOT NULL,
`Value` DOUBLE NOT NULL,
`NewID` MEDIUMINT UNSIGNED NOT NULL DEFAULT 1,
UNIQUE INDEX indexNewData(`BateID`,`SymbolID`,`AssesstmentDate`),
INDEX NewID(`NewID`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251 ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=4

PARTITION BY RANGE ( UNIX_TIMESTAMP(AssesstmentDate) ) (
PARTITION p_1980 VALUES LESS THAN (UNIX_TIMESTAMP("1980-01-01") ),
PARTITION p1980 VALUES LESS THAN (UNIX_TIMESTAMP("1981-01-01") ),
PARTITION p1981 VALUES LESS THAN (UNIX_TIMESTAMP("1982-01-01") ),
PARTITION p1982 VALUES LESS THAN (UNIX_TIMESTAMP("1983-01-01") ),
PARTITION p1983 VALUES LESS THAN (UNIX_TIMESTAMP("1984-01-01") ),
PARTITION p1984 VALUES LESS THAN (UNIX_TIMESTAMP("1985-01-01") ),
PARTITION p1985 VALUES LESS THAN (UNIX_TIMESTAMP("1986-01-01") ),
PARTITION p1986 VALUES LESS THAN (UNIX_TIMESTAMP("1987-01-01") ),
PARTITION p1987 VALUES LESS THAN (UNIX_TIMESTAMP("1988-01-01") ),
PARTITION p1988 VALUES LESS THAN (UNIX_TIMESTAMP("1989-01-01") ),
PARTITION p1989 VALUES LESS THAN (UNIX_TIMESTAMP("1990-01-01") ),
PARTITION p1990 VALUES LESS THAN (UNIX_TIMESTAMP("1991-01-01") ),
PARTITION p1991 VALUES LESS THAN (UNIX_TIMESTAMP("1992-01-01") ),
PARTITION p1992 VALUES LESS THAN (UNIX_TIMESTAMP("1993-01-01") ),
PARTITION p1993 VALUES LESS THAN (UNIX_TIMESTAMP("1994-01-01") ),
PARTITION p1994 VALUES LESS THAN (UNIX_TIMESTAMP("1995-01-01") ),
PARTITION p1995 VALUES LESS THAN (UNIX_TIMESTAMP("1996-01-01") ),
PARTITION p1996 VALUES LESS THAN (UNIX_TIMESTAMP("1997-01-01") ),
PARTITION p1997 VALUES LESS THAN (UNIX_TIMESTAMP("1998-01-01") ),
PARTITION p1998 VALUES LESS THAN (UNIX_TIMESTAMP("1999-01-01") ),
PARTITION p1999 VALUES LESS THAN (UNIX_TIMESTAMP("2000-01-01") ),
PARTITION p2000 VALUES LESS THAN (UNIX_TIMESTAMP("2001-01-01") ),
PARTITION p2001 VALUES LESS THAN (UNIX_TIMESTAMP("2002-01-01") ),
PARTITION p2002 VALUES LESS THAN (UNIX_TIMESTAMP("2003-01-01") ),
PARTITION p2003 VALUES LESS THAN (UNIX_TIMESTAMP("2004-01-01") ),
PARTITION p2004 VALUES LESS THAN (UNIX_TIMESTAMP("2005-01-01") ),
PARTITION p2005 VALUES LESS THAN (UNIX_TIMESTAMP("2006-01-01") ),
PARTITION p2006 VALUES LESS THAN (UNIX_TIMESTAMP("2007-01-01") ),
PARTITION p2007 VALUES LESS THAN (UNIX_TIMESTAMP("2008-01-01") ),
PARTITION p2008 VALUES LESS THAN (UNIX_TIMESTAMP("2009-01-01") ),
PARTITION p2009 VALUES LESS THAN (UNIX_TIMESTAMP("2010-01-01") ),
PARTITION p2010 VALUES LESS THAN (UNIX_TIMESTAMP("2011-01-01") ),
PARTITION p2011 VALUES LESS THAN (UNIX_TIMESTAMP("2012-01-01") ),
PARTITION p2012 VALUES LESS THAN (UNIX_TIMESTAMP("2013-01-01") ),
PARTITION p2013 VALUES LESS THAN (UNIX_TIMESTAMP("2014-01-01") ),
PARTITION p2014 VALUES LESS THAN (UNIX_TIMESTAMP("2015-01-01") ),
PARTITION p2015 VALUES LESS THAN (UNIX_TIMESTAMP("2016-01-01") ),
PARTITION p2016 VALUES LESS THAN (UNIX_TIMESTAMP("2017-01-01") ),
PARTITION p2017 VALUES LESS THAN (UNIX_TIMESTAMP("2018-01-01") ),
PARTITION p2018 VALUES LESS THAN (UNIX_TIMESTAMP("2019-01-01") ),
PARTITION p2019 VALUES LESS THAN (UNIX_TIMESTAMP("2020-01-01") ),
PARTITION p2020 VALUES LESS THAN (UNIX_TIMESTAMP("2021-01-01") )
);


Two indexes are created for some checking data. If some index exists creation is skipped.

ALTER TABLE `tblNewPricesData` ADD UNIQUE indexNewData(`BateID`,`SymbolID`,`AssesstmentDate`);
ALTER TABLE `tblNewPricesData` ADD INDEX indexSymbolDate(`SymbolID`,`AssesstmentDate`);

Before inserting data these two indexes are removed.
Data are inserted with series of LOAD DATA INFILE commands.

Then these 2 indexes are recreated again.

When i have 1.400.000 records all is fine
when i have 106.000.000 records partition files for table are disappeared. So i have
2 files only: tblNewPricesData.frm and tblNewPricesData.par. All *.ibd partitions files
are disappeared. BUT ALL DATA EXIST. i think that all data copied to ibdata file

MySQL version: 5.5.31-0ubuntu0.12.04.2-log

my.cnf file:

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

[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
skip-external-locking
#
bind-address = 127.0.0.1
#
key_buffer = 16M
max_allowed_packet = 16M
thread_stack = 384K
thread_cache_size = 8
#
innodb_buffer_pool_size = 5G
innodb_buffer_pool_instances = 2
innodb_flush_log_at_trx_commit = 2

myisam-recover = BACKUP

query_cache_limit = 1M
query_cache_size = 16M

log_error = /var/log/mysql/error.log
log_slow_queries = /var/log/mysql/mysql-slow.log
long_query_time = 3

log_bin = /var/log/mysql/mysql-bin.log
expire_logs_days = 15
max_binlog_size = 100M

[mysqldump]
quick
quote-names
max_allowed_packet = 16M

[isamchk]
key_buffer = 16M

!includedir /etc/mysql/conf.d/

Any suggestions ?

Connecting to DB C# (1 reply)

$
0
0
It's prbably something basic and fundamental, but I have missed it. I cannot connect to my database on my local machine. I have checked services to make sure the server is running. I see Mysql56 is started. My connection string is verified to be

connectionString=”Server=localhost;Database=Flight_log_db;Uid=root;Pwd=admin;”

       private bool OpenConnection()
        {
            try
            {
                connection.Open();
                return true;
            }
            catch (MySqlException ex)
            {
                switch (ex.Number)
                {
                    case 0:
                        MessageBox.Show("Cannot connect to server.  BULLSHIT! Call the stupid programmer and tell him something's wrong!");
                        break;

                    case 1045:
                        MessageBox.Show("Invalid username/password, please try again");
                        break;
                }
                return false;
            }
        }

It always throws an exception 0.

What did I do wrong?

Scott

ERROR 1548 (HY000) at line 1: Cannot load from mysql.proc. (no replies)

$
0
0
Hi,

I have this message on any operation on the server and seems to be unable to drop any databases.

I already tried to repair :

mysqlcheck -u root -p --auto-repair --optimize --all-databases

It does not change anything.

I've seen on google that it could be a question of room on the disk but my whole datadir is : 208 Mo and I have : 50 Go left on the disk.

Thank you for any solution or idea.

how to enable sql_auto_is_null in my.ini? (no replies)

$
0
0
in 5.0 it came enabled by default, but now in 5.6, it's not. So, I need to turn the thing on.

i've tried

sql_auto_is_null=1
sql_auto_is_null=ON
sql_auto_is_null="ON"
sql_auto_is_null

all of them under [mysqld] (I tried in [mysql], the service starts, but the SHOW VARIABLES shows the value in OFF)

is even possible?

=(

Location of .mysql_secret file on Windows 7 (no replies)

$
0
0
I've just installed a copy of MySQL 5.7.5 onto my Windows 7 machine for test purposes.

As always, I downloaded the ZIP file, copied the contents across, replaced the ini file with a pre-prepared one (mainly so I can see which of our current options fail on install due to deprecation or being removed).

I then created a service:

mysqld.exe --install MySQL57 --defaults-file="c:\MySQL\57\my.ini"

And started the service.

So far so good. . .

However, I now need to log in. To do this I apparently need the password stored in the .mysql_secret file. But I can't for the life of me find it anywhere on my machine!!

On Linux it is apparently found in $HOME, but I can't find any reference to it's location on Windows. I tried all the obvious places including %USERPROFILE%, but it just doesn't appear to be there.

Can anyone tell me where to look in order to find this file?

Or is there a way to log in without this password?

mysqladmin failure (no replies)

$
0
0
My server (redhat enterprise Linux 5.11) crashed and when restored MySQL no longer will start. When I try to start the mysqld service, I get the message "Cannot check for MySQL Daemon startup because of mysqladmin failure." I have uninstalled and reinstalled, with no success. I have searched for hours but found no solution.

How do I fix this?

Thanks

RHEL 7, mysql yum repo, mysql 5.6, use non-default datadir? (1 reply)

$
0
0
Hi,

I have a client who anticipates a very large "local" DB presence within a year or two -- lots and lots of inserts. I want to place the datadir in an expandable partition that is not /var/lib/mysql.

I have done this. I created a mount point "/bigDB" I set the /etc/my.cnf file to know about:

datadir=/bigDB
socket=/bigDB/mysql.sock

I can start the server.

I can not run mysql_secure_installation because it keeps trying to use the default socket in /var/lib/mysql

I can not run the mysql command line client unless I either add the --socket argument or add the socket to a ~/.my.cnf file

I do not see a socket option for mysql_secure_installation and it seems to ignore the system and user config files.

How do I deal with this?

Seven

Debian Wheezy install fails (1 reply)

$
0
0
I have used Mysql in Debian Squeeze but I cannot install it in Wheezy.
I got the file mysql-5.5.40-linux2.6-x86_64.tar.gz, unpacked it and ran
the command scripts/mysql_install_db --force --user=mysql. The response was:

./bin/my_print_defaults: 5: ./bin/my_print_defaults: Syntax error: ")" unexpected
Installing MySQL system tables...
./bin/mysqld: 2: ./bin/mysqld: Syntax error: "(" unexpected

The error seems odd, when mysqld is an Elf binary. I tried mysql-5.6 and the
response was much the same.

What am I doing wrong?

Mysql Server not Starting using mysql-service. (1 reply)

$
0
0
I've installed MySQL using RPM installer on Linux. After installation I started the MySQL using mysql-service. But later on I've changed the data-directory, log file locations, pid-file location and socket file location. I've configured all these things in /etc/my.cnf file. But using mysql-service I am not able to start the server. However If I start the server directly using mysqld_safe, then it started fine without any errors. Can some one please help me out, how can I get rid of this issue.
Below is the error which I am getting while starting the server, using mysql-service.
++++++++
]# service mysql start
Starting MySQL. ERROR! The server quit without updating PID file (/data/mysql/mysqld.pid).
++
Directly executing mysqld_safe, I am able to start the server and below is the process status.:-

# ps -ef | grep mysql
root 11866 10650 0 11:34 pts/1 00:00:00 /bin/sh /usr/bin/mysqld_safe --defaults-file=/etc/my.cnf
mysql 12416 11866 0 11:34 pts/1 00:00:00 /usr/sbin/mysqld --defaults-file=/etc/my.cnf --basedir=/usr --datadir=/data/mysql/data --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/data/mysql/logs/mysqld.log --pid-file=/data/mysql/mysqld.pid --socket=/tmp/mysql.sock --port=3306
root 12479 10650 0 11:43 pts/1 00:00:00 grep mysql

++

Status of MySQL:-
mysql> \s
--------------
mysql Ver 14.14 Distrib 5.6.22, for Linux (x86_64) using EditLine wrapper

Connection id: 1
Current database:
Current user: root@localhost
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 5.6.22-log MySQL Community Server (GPL)
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: latin1
Db characterset: latin1
Client characterset: utf8
Conn. characterset: utf8
UNIX socket: /tmp/mysql.sock
+++

Thanks,
Sandeep
Viewing all 7172 articles
Browse latest View live




Latest Images