Quantcast
Channel: MySQL Forums - Install & Repo
Viewing all articles
Browse latest Browse all 7239

how to configure datadir to create tables on external hard drive (no replies)

$
0
0
I am newbie, newbie
newbie to linux, using Mandriva 2010.2, MySQL version 5-1-58
trying to get mysql to create InnoDB tables on an external hard drive, 1TB
I have very limited space on my desktop hard drive

I have been able to start/stop server, mysqld_safe, have been able to secure passwords, etc when federated was the active storage engine. When try to use InnoDB, can't connect to mysql.sock

Folks, I have been at this for awhile, am not sure what to do now - I am not sure if I have my paths right or if the syntax for load InnoDB is right, dunno??
Please help.

below is my .cnf file

# The MySQL server
[mysqld]
user = mysql
datadir = /var/lib/mysql/
port = 3306
socket = /var/lib/mysql/mysql.sock
pid-file = /var/run/mysqld/mysqld.pid
skip-external-locking
key_buffer = 16M
max_allowed_packet = 32M
table_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
;collation_server = utf8_unicode_ci
;character_set_server = utf8

# plugins
plugin_dir=/usr/lib/mysql/plugin
#plugin-load=ha_archive.so;ha_blackhole.so;ha_innodb.so;ha_federated.so
# alternative innodb plugin: ha_innodb_plugin.so
plugin-load=ha_innodb_plugin.so
# third party plugins: ha_revision.so;ha_sphinx.so;sphinx.so;libpbxt.so;libpinba_engine.so
# activate the federated storage engine
#federated
# use InnoDB for transactions and better crash recovery
default_storage_engine=innodb

skip-networking

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

# required unique id between 1 and 2^32 - 1
# defaults to 1 if master-host is not set
# but will not function as a master if omitted
server-id = 1


# Uncomment the following if you are using InnoDB tables
innodb_data_home_dir = /media/LXPROG/
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = /var/lib/mysql/
innodb_log_arch_dir = /var/lib/mysql/
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
innodb_buffer_pool_size = 16M
innodb_additional_mem_pool_size = 2M
# Set .._log_file_size to 25 % of buffer pool size
innodb_log_file_size = 5M
innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50

#bind-address=192.168.100.1

[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
safe-updates
default-character-set = utf8

[isamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[myisamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[mysqlhotcopy]
interactive-timeout

[mysql.server]
user=mysql
basedir=/var/lib

[mysqld_safe]
err-log=/var/log/mysqld/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

# MySQL Instance Manager options section
[manager]
user=mysql
default-mysqld-path=/usr/sbin/mysqld
socket=/var/lib/mysql/mysqlmanager.sock
pid-file=/var/run/mysqld/mysqlmanager.pid
password-file=/etc/mysqlmanager.passwd
run-as-service
monitoring-interval=20

Viewing all articles
Browse latest Browse all 7239

Trending Articles



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