Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Database \ MariaDB database storage path modify configuration issues     - Linux C source code (Ascii HexToBinary: Converts hexadecimal string format ASCII codes) (Programming)

- Ubuntu install snmp packets Unlinked OID in IPATM-IPMC-MIB: marsMIB (Linux)

- Ubuntu install Avast antivirus software (Programming)

- To install Git on Ubuntu systems (Server)

- JQuery implements the same content merge cells (Programming)

- HTML5 postMessage cross-domain data exchange (Programming)

- Installing software on Ubuntu: apt-get and dpkg difference (Linux)

- Three binary tree traversal (recursive, non-recursive traversal and Morris) (Programming)

- Introduction Linux namespace (Linux)

- Using monitoring tool dsniff (Linux)

- How to interactively create a Docker container (Server)

- Java8 Lambda expressions and flow operations (Programming)

- Define and modify strings principle in Python (Programming)

- Android Studio commonly used shortcuts and how to follow the Eclipse Shortcuts (Linux)

- LVM mirrored logical volume to achieve (Linux)

- Oracle utilized undo data recovery operations (Database)

- Fragment Android developers learning to resolve (Programming)

- SQL in the specific internal Oracle process (Database)

- C ++ containers (Programming)

- How to use scientific data Docker quickly configure the development environment (Server)

 
         
  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:      
 
- The new task parallel library feature in .NET 4.6 (Programming)
- CentOS 5.10 installed Oracle 11G R2 (Database)
- Linux automatic installation and implementation (Linux)
- Linux System Getting Started Tutorial: Installing Git on Linux (Linux)
- High-performance open-source http accelerator Varnish introduce (Server)
- shell script error dirname: invalid option - b (Database)
- Service manager OpenBSD on rccl (Server)
- C # get the current screenshot (Programming)
- Php and MySQL command add to the environment variable method in Linux system (Linux)
- Usage of sudo (Linux)
- JBoss7 configuration - Supports IPv4 and IPv6 dual-stack environment (Server)
- Fedora 22 installation and configuration optimization (Linux)
- GNU Linux system variables (sysctl configuration commands) integrated use (Linux)
- CentOS static IP network configuration (Linux)
- Use this one-time password via SSH secure login Linux (Programming)
- Linux platform to prevent hackers to share practical skills (Linux)
- Debugging with GDB tool Go (Programming)
- Android float ball and boot from the start (Programming)
- Linux program analysis tool: ldd and nm (Linux)
- Git uses a small mind (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.