Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Database \ MariaDB database storage path modify configuration issues     - MySQL high availability cluster fragmentation of deployment uses Fabric (Database)

- VMware virtual machine to install CentOS 6.2 (Linux)

- Ubuntu buffalo wzr-hp-300nh brush DD-WRT router system (Linux)

- ORA-30926 and MERGE tables empty the temporary occupation problem (Database)

- Python image processing library (PIL) to install and simple to use (Linux)

- Linux operating tips: Can not open file for writing or operation not permitted solution (Linux)

- Make full use of the Raspberry Pi SD card space (Linux)

- CentOS 7.0 local address and configure yum source address priority (Linux)

- CentOS iptables firewall configuration (Linux)

- Linux prohibit non-WHEEL user su command Detail (Linux)

- Ubuntu apt-mirror established local private sources (Linux)

- Installation JDK 1.8 under CentOS7 (Linux)

- Linux Getting Started tutorial: GNU C and Vim will fight the C / C ++ IDE semi-automatic (Linux)

- Python in os.path Magical (Programming)

- Zookeeper cluster deployment (Server)

- Linux data recovery software efficiently practical application extundelete (Linux)

- VMware 8 installation configuration Win7, CentOS-7 Wizard (Linux)

- Linux installation JDK1.6 rpm.bin assembly (Linux)

- Nginx start, stop, smooth start, smooth upgrade (Server)

- Using open source software to build XWiki Wiki system installed within the company (Linux)

 
         
  MariaDB database storage path modify configuration issues
     
  Add Date : 2018-11-21      
         
         
         
 

MySQL is not running, but lock file (/ var / lock / subsys / mysql) the existence of this problem exists
generally determined by three reasons:
1: configuration files enough authority, all of the files related to the configuration of all the changes for the mysql user rights
2: pid mysql is not running, rm -rf / var / lock / subsys / mysql, to re-create a new default pid file permissions to 660
3: my.cnf configuration file errors, we need to re-edit

Can not open and lock privilege tables: Table 'mysql.user' does not exist
The problem is due myql storage file system comes with no database can be entered or the database mysql_install_db
the path to re-edit the default / directory var / lib / mysql is

posted below my own mariadb configuration (from the database)

[client]
port             = 3306
socket           = /var/lib/mysql/mysql.sock
default-character-set = utf8


[mysqld_safe]
socket           = /var/lib/mysql/mysql.sock
nice             = 0


[mysqld]
user   = mysql
pid-file   = /var/run/mysqld/mysqld.pid
socket   = / var / lib / mysql /mysql.sock
log_error   =   /var/log/mysqld/error.log
port   = 3306
basedir   = / usr
datadir   = / data
tmpdir   = / tmp
lc-messages-dir = / usr / share / mysql
skip-external-locking
bind-address = 0.0.0.0
skip- name-resolve
lower_case_table_names = 1
max_connections = 1000
connect_timeout = 15
wait_timeout = 600
max_allowed_packet       = 16M
thread_cache_size       = 128
sort_buffer_size         = 16M
bulk_insert_buffer_size = 16M
tmp_table_size           = 128M
max_heap_table_size     = 128M
query_cache_limit     = 0
query_cache_size     = 0


long_query_time = 10


log_bin                 = / var / log / mysqld / mysql-bin
log_bin_index           = / var / log / mysqld / mysql-bin.index


expire_logs_days         = 10
max_binlog_size         = 100M


binlog_ignore_db = mysql
server_id = 5005
log_slave_updates = 1
slave_skip_errors = all
# auto_increment_offset = 1
### auto_increment_increment = 2
# binlog_format = row
#
##
## replicate-do-db =
#key_buffer_size = 1024M
##
#
# collation-server = utf8_general_ci
# init-connect = 'SET NAMES utf8'
# character-set-server = utf8
#
# default_storage_engine   = InnoDB
# innodb_buffer_pool_size = 30720M
# innodb_log_buffer_size   = 32M
# innodb_file_per_table   = 1
# innodb_open_files       = 400
# innodb_io_capacity       = 400
# innodb_flush_method     = O_DIRECT
#innodb_flush_log_at_trx_commit = 2
# innodb_log_file_size     = 512M
#
# key_buffer               = 16M
# thread_stack             = 192K
# myisam-recover         = BACKUP
#
# [mysqldump]
#quick
# quote-names
# max_allowed_packet       = 16M
#
# [isamchk]
# key_buffer               = 16M
##

     
         
         
         
  More:      
 
- Xmanager Remote Desktop connection CentOS (Linux)
- Shell Scripting Interview Questions (Programming)
- Nginx Module Development - get user ip (Server)
- To share some very useful Vim command (Linux)
- Make command Detailed Tutorial (Programming)
- Share and show your code on GitHub (Linux)
- Implement Oracle dynamic registration of non-standard port 1521 (Database)
- Linux operation and maintenance of the automated installation and deployment RHEL7.0 Cobbler (Linux)
- To achieve a two-way static NAT stateless available modules on Linux (Linux)
- The Java development environment to build under Ubuntu 14.04 (Linux)
- Linux C source code (Ascii HexToBinary: Converts hexadecimal string format ASCII codes) (Programming)
- Polymorphism of the C ++ compiler and run-time polymorphism (Programming)
- Git Rebase Tutorial: Using Git Rebase turn back the clock (Linux)
- Read the official GNU Make manual one (chapter 1-2) (Programming)
- Android Application Development: an argument between Activity (Programming)
- Eight sorting algorithm implemented in Python (Programming)
- Python kills corresponding process according to pid (Programming)
- Linux kernel socket protocol stack routing lookup cache mechanism (Linux)
- The hash function under OpenSSL (Linux)
- DRBD installation configuration, working principle and Recovery (Server)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.