- 浏览: 269354 次
- 性别:
- 来自: 新乡
文章分类
- 全部博客 (227)
- servciemix (10)
- db (18)
- javaTools (4)
- hibernate (31)
- web (3)
- spring (14)
- design pattern (4)
- java security (3)
- portal (1)
- ejb (6)
- session (2)
- java_lang (21)
- jbpm (29)
- struts (7)
- orgRights (2)
- project manager Jira (7)
- 跨库事务 (2)
- mysql (14)
- ubuntu (7)
- osgi (9)
- maven ant make (4)
- 分布式 高并发 高性能 (5)
- virgo-dm_server (0)
- osgi web (3)
- platform (1)
- smooks (1)
- business (1)
- 职场生涯 (14)
- Java编码格式 (2)
- web服务 (1)
- 计算机使用 (1)
- 健康工作生活的保障,工作中务必抛掉的不良心态 (4)
- 电信-网络监控 (1)
- 多线程-multithread (1)
- 海量数据-高性能 (2)
- Mybatis (1)
- web开发平台研发 (0)
- oracle (0)
- 应用服务器调优 (0)
- web前端 (0)
- servlet-jsp (0)
- tomcat (2)
- newtouch (1)
- portal_liferay (2)
- version control (1)
- apm-impact (2)
- tools (1)
- 研发管理 (1)
- 电商业务 (1)
- 生鲜电商市场调查 (0)
- PBX (0)
- 房东 (0)
最新评论
-
lifuchao:
...
权限问题 -
Branding:
谢谢,受教了,另外,CONN AS SYSDBA,必须是在操作 ...
Oracle密码忘记了怎么办? -
zhuchao_ko:
...
Portal实现原理 -
败类斯文:
不知道改哪里。。。木有见到红色。。表示悟性低了、、
jira error: Neither the JAVA_HOME nor the JRE_HOME environment variable is defin -
c__06:
正文:假如事务我是这样定义的: <tx:method n ...
Spring中Transactional配置
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
# Here is entries for some specific programs
# The following values assume you have at least 32M ram
# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0
[mysqld]
#
# * Basic Settings
#
#
# * IMPORTANT
# If you make changes to these settings and your system uses apparmor, you may
# also need to also adjust /etc/apparmor.d/usr.sbin.mysqld.
#
user = mysql
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
skip-external-locking
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address = 127.0.0.1
#
# * Fine Tuning
#
key_buffer = 16M
max_allowed_packet = 16M
thread_stack = 192K
thread_cache_size = 8
# This replaces the startup script and checks MyISAM tables if needed
# the first time they are touched
myisam-recover = BACKUP
#max_connections = 100
#table_cache = 64
#thread_concurrency = 10
#
# * Query Cache Configuration
#
query_cache_limit = 1M
query_cache_size = 16M
#
# * Logging and Replication
#
# Both location gets rotated by the cronjob.
# Be aware that this log type is a performance killer.
# As of 5.1 you can enable the log at runtime!
#general_log_file = /var/log/mysql/mysql.log
#general_log = 1
log_error = /var/log/mysql/error.log
# Here you can see queries with especially long duration
#log_slow_queries = /var/log/mysql/mysql-slow.log
#long_query_time = 2
#log-queries-not-using-indexes
#
# The following can be used as easy to replay backup logs or for replication.
# note: if you are setting up a replication slave, see README.Debian about
# other settings you may need to change.
#server-id = 1
#log_bin = /var/log/mysql/mysql-bin.log
expire_logs_days = 10
max_binlog_size = 100M
#binlog_do_db = include_database_name
#binlog_ignore_db = include_database_name
#
# * InnoDB
#
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
# Read the manual for more InnoDB related options. There are many!
#
# * Security Features
#
# Read the manual, too, if you want chroot!
# chroot = /var/lib/mysql/
#
# For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
#
# ssl-ca=/etc/mysql/cacert.pem
# ssl-cert=/etc/mysql/server-cert.pem
# ssl-key=/etc/mysql/server-key.pem
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
[mysql]
#no-auto-rehash # faster start of mysql but no tab completition
[isamchk]
key_buffer = 16M
#
# * IMPORTANT: Additional settings that can override those from this file!
# The files must end with '.cnf', otherwise they'll be ignored.
#
!includedir /etc/mysql/conf.d/
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
# Here is entries for some specific programs
# The following values assume you have at least 32M ram
# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0
[mysqld]
#
# * Basic Settings
#
#
# * IMPORTANT
# If you make changes to these settings and your system uses apparmor, you may
# also need to also adjust /etc/apparmor.d/usr.sbin.mysqld.
#
user = mysql
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
skip-external-locking
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address = 127.0.0.1
#
# * Fine Tuning
#
key_buffer = 16M
max_allowed_packet = 16M
thread_stack = 192K
thread_cache_size = 8
# This replaces the startup script and checks MyISAM tables if needed
# the first time they are touched
myisam-recover = BACKUP
#max_connections = 100
#table_cache = 64
#thread_concurrency = 10
#
# * Query Cache Configuration
#
query_cache_limit = 1M
query_cache_size = 16M
#
# * Logging and Replication
#
# Both location gets rotated by the cronjob.
# Be aware that this log type is a performance killer.
# As of 5.1 you can enable the log at runtime!
#general_log_file = /var/log/mysql/mysql.log
#general_log = 1
log_error = /var/log/mysql/error.log
# Here you can see queries with especially long duration
#log_slow_queries = /var/log/mysql/mysql-slow.log
#long_query_time = 2
#log-queries-not-using-indexes
#
# The following can be used as easy to replay backup logs or for replication.
# note: if you are setting up a replication slave, see README.Debian about
# other settings you may need to change.
#server-id = 1
#log_bin = /var/log/mysql/mysql-bin.log
expire_logs_days = 10
max_binlog_size = 100M
#binlog_do_db = include_database_name
#binlog_ignore_db = include_database_name
#
# * InnoDB
#
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
# Read the manual for more InnoDB related options. There are many!
#
# * Security Features
#
# Read the manual, too, if you want chroot!
# chroot = /var/lib/mysql/
#
# For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
#
# ssl-ca=/etc/mysql/cacert.pem
# ssl-cert=/etc/mysql/server-cert.pem
# ssl-key=/etc/mysql/server-key.pem
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
[mysql]
#no-auto-rehash # faster start of mysql but no tab completition
[isamchk]
key_buffer = 16M
#
# * IMPORTANT: Additional settings that can override those from this file!
# The files must end with '.cnf', otherwise they'll be ignored.
#
!includedir /etc/mysql/conf.d/
发表评论
-
CentOS 6.3 x64 安装 mysql-5.5.27.tar.gz
2013-12-27 18:00 1566CentOS 6.3 x64 安装 mysql-5.5.27. ... -
Linux中配置MySQL随系统的自动启动和关闭
2011-10-25 18:28 1062Linux中配置MySQL和tomcat随系统的自动启动和关闭 ... -
usr.sbin.mysqld
2011-10-24 09:32 1036# vim:syntax=apparmor # Last Mo ... -
Ubuntu 10.04下修改MySQL的datadir的问题
2011-10-23 13:28 976Ubuntu 10.04下修改MySQL的datadi ... -
在Ubuntu下的MySQL数据库如何更改存储位置
2011-10-23 13:05 10在Ubuntu下的MySQL数据库如何更改存储位置 来源:IT ... -
在Ubuntu下的MySQL数据库如何更改存储位置
2011-10-23 12:33 10在Ubuntu下的MySQL数据库如何更改存储位置 来源:IT ... -
ubuntu linux下配置多个mysql实例 (Larry徐刚原创)
2011-10-22 18:10 3029port ,socket,pid-file,datadir这四 ... -
ubuntu server — 02 Mysql数据转移
2011-10-21 10:58 0ubuntu server — 02 Mysql数据转移 Po ... -
mysql数据文件转移的问题
2011-10-21 10:31 11mysql数据文件转移的问 ... -
ubuntu下,mysql默认数据库存放路径
2011-10-21 10:20 2005ubuntu下,mysql默认数据库存放路径是 /var/li ... -
mysql cluster安装与配置
2011-10-21 10:18 1058mysql cluster安装与配置 201 ... -
Ubuntu 10.04下修改MySQL的datadir的问题
2011-10-21 10:17 8Ubuntu 10.04下修改MySQL的datadi ... -
mysql数据文件转移的问题
2011-10-21 10:16 1393mysql数据文件转移的问 ... -
Mysql具有一次安装可以运行多个实例的功能
2011-10-22 18:11 14Mysql具有一次安装可以运行多个实例的功能 2011-07- ... -
MySQL多实例安装
2011-10-20 20:09 0MySQL多实例安装 [日期:2011-05-06] 来源: ... -
一台服务器上配置多台Mysql实例
2011-10-22 18:11 1169一台服务器上配置多台Mysql实例 2011-07-25 14 ... -
linux下配置多个mysql实例
2011-10-20 19:26 0linux下配置多个mysql实例 2011年09月20日 1 ... -
stop mysql sercice
2011-10-23 10:18 12sudo /etc/init.d/mysql stop -
实现多个MySQL数据库实例管理,用mysqld_multi!
2011-10-22 18:11 12实现多个MySQL数据库实例管理,用mysqld_multi! ... -
mysql多实例配置
2011-10-20 16:13 0mysql多实例配置 2011-09-24 03:44 1. ...
相关推荐
本文主要给大家介绍了关于MySQL中配置文件my.cnf因权限问题导致无法启动的相关解决过程,分享出来供大家参考学习,下面来一起看看详细的介绍: 问题描述 MySQL 无法启动,报如下错误: 问题分析 查看 MySQL 错误...
sudo cp /usr/local/mysql/support-files/my-default.cnf /etc/my.cnf ``` 然后,使用文本编辑器打开my.cnf文件,并修改相应的配置参数。 配置文件的优先级 MySQL的配置文件有多个,优先级从高到低分别是: 1. ~...
MySQL的主配置文件一般被称为`my.cnf`或`my.ini`,在Linux系统中通常是`my.cnf`。这个文件包含了启动参数、连接设置、存储引擎配置、性能调整等多个方面的内容。配置文件的结构分为多个部分,每个部分以`[section]`...
在使用MySQL数据库时,我们可能会遇到这样一个问题:尝试重启MySQL服务时,系统返回"Warning: World-writable config file '/etc/my.cnf' is ignored"的错误提示,这意味着MySQL配置文件`my.cnf`的权限设置不正确,...
`my.cnf`文件是MySQL服务端的核心配置文件之一,它通常位于系统的特定目录下(例如Linux系统中通常位于`/etc/mysql/my.cnf`或`/etc/my.cnf`)。此文件包含一系列的配置选项,这些选项决定了MySQL服务器的行为特性。...
linux下安装mysql时的my.cnf文件,其路径为/etc/my.cnf,如果安装路径为/home/envir/mysql则该文件可以不做修改,直接丢下去或覆盖;
`my.cnf`文件通常位于`/etc/my.cnf`或`/etc/mysql/my.cnf`,但具体位置可能因发行版和安装方式而异。文件由多个节(section)组成,如 `[mysqld]`、`[mysqldump]` 和 `[client]`,每个节内的配置适用于相应的MySQL...
3. /usr/local/mysql/etc/my.cnf 4. ~/.my.cnf PATH变量配置 为了避免在使用MySQL时总是必须键入客户端程序的路径名,可以将/usr/local/mysql/bin目录添加到PATH变量中: `export PATH=$PATH:/usr/local/mysql8/...
1. 确保你修改的是正确路径下的`my.cnf`,通常是`/etc/my.cnf`或`/etc/mysql/my.cnf`。 2. 如果你有特定的配置需求,可以考虑在用户目录下创建`~/.my.cnf`,这样只会影响到当前用户的MySQL客户端。 3. 使用`--...
my.cnf 文件通常位于 /etc/mysql/ 目录下。 MySQL 启动错误的原因 MySQL 启动错误可能是由于多种原因引起的,例如: 1. 配置文件 my.cnf 的修改不当,导致 MySQL 服务器无法正确启动。 2. MySQL 服务器的进程 ID ...
3. **位置**:在Linux系统中,`my.cnf`通常位于`/etc/my.cnf`,但不同发行版可能略有差异。确保配置文件放在正确位置,MySQL才能读取到。 4. **重启服务**:修改配置文件后,必须重启MySQL服务以使更改生效。命令...
启动mysql服务器:./mysqld –defaults-file=/etc/my.cnf –user=root 客户端连接: mysql --defaults-file=/etc/my.cnf or mysql -S /tmp/mysql.sock 2、mysqld_safe 启动mysql服务器:./mysqld_safe –defaults-file...
在类NUIX的系统中,配置文件的位置一般在/etc/my.cnf 或者 /etc/MySQL/my.cnf 我们见过有些人尝试修改配置文件但是不生效,因为他们修改的并不是服务器读取的文件。例如Debian下,/etc/mysql/my.cnf才是MySQL读取的...
在这个版本中,`my.cnf`通常位于系统的配置目录下,如Linux系统中的`/etc/mysql/my.cnf`。 ### `my.cnf`的基本结构 `my.cnf`文件由多个部分组成,每个部分以大写字母的 `[section]` 开头,例如 `[mysqld]`、`...
这是由MySQL配置文件(通常为`/etc/my.cnf`或`/etc/mysql/my.cnf`)中的`datadir`参数指定的。 #### 知识点二:创建新的数据文件存放目录 1. **新建数据目录**:首先,我们需要在新位置创建用于存放MySQL数据文件...
这是MySQL服务器的默认配置文件,通常位于系统的/etc/my.cnf或者/etc/mysql/my.cnf路径下,用于设置MySQL服务器的启动参数和各种配置选项。在主从复制中,我们需要关注以下几个关键参数: 1. **server-id**:这是每...
1. 修改`/etc/mysql/my.cnf`,在`[mysqld]`部分添加`bind-address = 0.0.0.0`,允许所有IP访问。 2. 更新`mysql.user`表,允许root用户远程登录。 最后,启动MySQL服务并检查运行状态: 1. 使用`/etc/init.d/mysql ...
在linux下面安装mysql如果在/etc下面没有存在my.cnf配置文件 解决方式如下: 1.通过which mysqld命令来查看mysql的安装位置 2.通过/usr/local/mysql/bin/mysqld –verbose –help |grep -A 1 ‘Default options’...
4. `/etc/mysql/my.cnf` 5. `/usr/local/etc/my.cnf` 6. 用户家目录下的`~/.my.cnf` 要查看MySQL默认的配置文件搜索路径,可以运行: ``` mysql --help | grep 'my.cnf' ``` 这将显示配置文件的搜索顺序。 当需要...