hlq415714067 2016-04-15 03:16 采纳率: 0%
浏览 1462

mysql启动的时参数文件中的[mysql]下的参数没有生效

my.cnf下的参数如下
[mysqld]
此处省略.....

[mysql]
#no-auto-rehash
prompt='\u@\h:\p\d mysql>'
#max_allowed_packet = 1024M ##影响mysql导人的速度
#default_character_set = gbk

启动方式
mysqld --defaults-file=/etc/my.cnf &

启动后prompt没有生效
[root@mysqldb15 ~]# mysql -uroot -p -S /tmp/mysql3306.sock
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.29-log MySQL Community Server (GPL)

Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

求回复

  • 写回答

1条回答 默认 最新

  • 普通网友 2016-10-07 17:39
    关注

    数文件中的[mysql]下的参数没有生效
    mysql
    my.cnf下的参数如下
    [mysqld]
    此处省略.....
    [mysql]
    #no-auto-rehash
    prompt='\u@\h:\p\d mysql>'
    #max_allowed_packet = 1024M ##影响mysql导人的速度
    #default_character_set = gbk
    启动方式
    mysqld --defaults-file=/etc/my.cnf &
    启动后prompt没有生效
    [root@mysqldb15 ~]# mysql -uroot -p -S /tmp/mysql3306.sock
    Enter password:
    Welcome to the MySQL monitor. Commands end with ; or \g.
    Your MySQL connection id is 1
    Server version: 5.6.29-log MySQ

    评论

报告相同问题?

悬赏问题

  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示