Hi everyone,
New to the forums and a bit new to linux/opensuse and running servers in general so my questions might have a bit of a simple solution to them!
I’ve moved my database to a new server since then I’m having a bit of trouble connecting, I can get the following error:
Not connected : Access denied for user ‘root’@‘localhost’ (using password: YES)
Yet if I used root@xxx.xxx.xxx.xxx (external server ip masked) I can connect fine with the same login credientials.
Also sometimes when I run a bulk load of INSERT queries I now end up with the following error:
2006: MySQL server has gone away
Here’s the contents of my.cnf if that is any help?
[client]
port = 3306
socket = /var/run/mysql/mysql.sock[mysqld]
port = 3306
socket = /var/run/mysql/mysql.sock
datadir = /var/lib/mysql
skip-locking
key_buffer_size = 16M
max_allowed_packet = 1M
table_open_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8Mlog-bin=mysql-bin
binlog_format=mixedserver-id = 1
set-variable = net_buffer_length=2G
set-variable = max_allowed_packet=2G
set-variable = myisam_sort_buffer_size=2G
set-variable = sort_buffer=2G
set-variable = table_cache=100
set-variable = query_cache_size=2147483648
set-variable = max_connections=10000
set-variable = key_buffer=2G
big-tables[safe_mysqld]
log-error = /var/log/mysql/mysqld.log
socket = /var/run/mysql/mysql.sock!include_dir /etc/mysql
[mysqldump]
socket = /var/run/mysql/mysql.sock
quick
max_allowed_packet = 16M[mysql]
no-auto-rehash[myisamchk]
key_buffer_size = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M[mysqlhotcopy]
interactive-timeout[mysqld_multi]
mysqld = /usr/bin/mysqld_safe
mysqladmin = /usr/bin/mysqladmin
log = /var/log/mysqld_multi.log
Thanks for any help!
Adam