问题标签 [my.cnf]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
mysql - changing default my.cnf path in mysql
I am having two mysql instances on same machine. The installations are on /usr/loca/mysql1 and /usr/local/mysql2.
I m having separate my.cnf files located in /etc/mysql1 and /etc/mysql2. I installed the first instance of my sql using source distribution and with the --prefix=/usr/local/mysql1 option. The second one i got from copying and pastinf the same directory to /usr/local/mysql2.
When i start the mysql daemon on /usr.local/mysql/libexec it reads the my.cnf file in /etc/mysql1. And if i start the mysql daemon in /usr/local/mysql2 it reads the same my.cnf file. I have separate port numbers and .sock files defined in the .cnf file in those 2 locations.
I can read the my.cnf file in the second location by using --defaults-file=/etc/mysql2/my.cnf option on mysqld startup. I do not need to enter this each and every time i start the daemon.
If i am going to have more instances how can i point the correct my.cnf file to read to each and every mysql daemon. What is the retionale behind mysqld links with the my.cnf file.
how can i predefine the location of my.cnf file for each instance.
mysql - 更新 max_allowed_packet
我的应用程序托管在共享服务器上,我无法从我的帐户访问 my.cnf/my.ini 文件,max_allowed_packet 仅设置为 1M,现在我需要将其更改为 32M,PHP 是否有任何想法或 .htaccess 来改变它的价值?
感谢和问候 Prajjwal
mysql - 如果没有my.cnf,mysql 用什么?
简而言之,如果没有,MySQL 使用什么配置值my.cnf
?
我在 Slackware 上运行 MySQL。我已经在 ISAM 和 InnoDB 表中使用了一段时间。我从未配置过my.cnf
文件。哎呀。现在我想这样做,但我不知道它当前正在使用什么设置,我想在安装my.cnf
文件并可能更改内容之前知道。
我已经完成了 MySQL--help
并检查了给定的位置。
我已经完成了 find / 并且我确定任何地方都没有my.cnf
或.my.cnf
文件。
我已经完成了ps aux
,没有--defaults_file
指定。
这些文件存在:
/etc/my-medium.cnf
/etc/my-huge.cnf
/etc/my-small.cnf
/etc/my-large.cnf/usr/share/mysql/my-medium.cnf
/usr/share/mysql/my-huge.cnf
/usr/share/mysql/my-small.cnf
/usr/share/mysql/my-innodb-heavy-4G .cnf
/usr/share/mysql/my-large.cnf
mysql - 当 my.cnf 中使用 init-file 时 mysqld 挂起
每次在 Fedora14 上启动/重新启动 mysqld(版本 5.1.4)时,我都会尝试做一些事情。
我在 my.cnf 中加入以下行:
init-file=/etc/mysqlinit.sql
我在文件中尝试了各种查询,甚至将文件留空。
MySQL 将无法启动...我在尝试启动 MySQL 守护程序时出现超时错误。
我尝试用引号将路径括起来,并确保文件权限与 my.cnf 相同。
我试过移动文件。
mysqld 或消息日志中没有任何帮助。
我想知道是否必须关闭selinux。
我错过了什么?
mysql - 独立脚本报告“MySQL 服务器已消失”;my.cnf 有问题吗?
我有一个 ruby 脚本,它需要'mysql2'并使用查询语句来 mysql,
@db.query("SELECT sname,id FROM streets where region_id=#{region["id"]}")
但它总是向我报告一个错误,如下所示:
我的 Ubuntu 上的脚本没问题,但是,我的生产环境是 CentOS,在那里我从源代码安装了 MySQL。我的 Rails 应用程序运行正常,它还需要“mysql2”,但是当我运行这个脚本时它失败了。
我认为问题与 my.cnf 有关,但我不知道如何配置它。
mysql - InnoDB 表存在于 MySQL 中,但表示将数据库复制到新服务器后它们不存在
我使用 mysqldump 导出数据库,然后将其导入到另一台服务器上的 MySQL。如果我“显示表格”,我现在可以看到我的所有表格,但我实际上无法从中选择或描述其中任何一个。
错误 1146 (42S02):表 'mydatabase.user' 不存在
我所有的表都是 InnoDB。我看到人们在使用 old_passwords 时遇到的一个问题,因此我在 my.cnf 中明确将其设置为 0,并确保 mysql 表中的所有密码都是 41 位十六进制数字,因为它们应该是新密码。
java - MAMP 中包含的 MySQL 是否不包含配置文件?
我似乎找不到 MAMP 附带的 MySQL 的 my.cnf 或其他配置文件。它不包括一个吗?
我想用NetBeans进行Java/MySQL开发,网上很多文章建议我注释掉my.cnf中的一行
通过编辑 MySQL 启动参数文件并注释掉“skip-networking”解决了这个问题。
在 /etc/my.cnf
变成:
我知道 MAMP 没有 my.cnf 那么如何让 NetBeans 与 MySQL 一起使用?
mysql - 优化 MySQL Query,重新配置 MY.CNF?
谁能帮我优化这个查询并帮我调整 my.cnf 文件?
在我重新启动服务器并且查询不在 chache 后执行大约需要 5 秒。我在以下位置有索引:表 product_feeds 到 pf_id(主)列 表 raw_feed 到 rf_row_id(主)和 rf_search_index 列
解释后我得到:
不知道为什么第一行的键为空?!我应该创建哪些索引?
我在 raw_feed 表中有 263,804 行,在 product_feeds 表中有 50 行。
MY.CNF 文件:()
谁能帮我重新配置这个文件并帮我查询?
我使用具有 10GB 根存储、1.7GB(RAM?)内存的亚马逊 aws ec2 小型实例
谢谢
mysql - MySQL my.cnf 文件 - 找到没有前面组的选项
我正在尝试远程连接到我在 Ubuntu 中的数据库,但在尝试以下操作时收到错误消息mysql -u root -p
:
在配置文件中找到没有前面组的选项:/etc/mysql/my.cnf 在第 1 行
my.cnf 看起来像:
mysql - 非常简单的选择的 MySQL 性能不佳
我的 mysql 查询的性能有问题。我有一张很大的桌子
数据量 - 2 gb。我在“名称”上创建了索引 - 7 gb。
我的查询如下所示:
我不会添加任何新数据,而是使用标准的“my-huge.cnf”。尽管如此,我每次查询花费大约 4-5 秒,我将进行大约 9-10*45000 次查询。如果我的计算机有 2gb 内存,我应该更改哪些选项以提高速度。