Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 10
Server version: 5.6.14 MySQL Community Server (GPL)Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trade of Oracle Corporation and/or its
affiliates. Other names may be trades of their respective
owners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql> show VARIABLES like '%max_allowed_packet%';
+--------------------------+------------+
| Variable_name | Value |
+--------------------------+------------+
| max_allowed_packet | 4194304 |
| slave_max_allowed_packet | 1073741824 |
+--------------------------+------------+
2 rows in set (0.00 sec)mysql> set global max_allowed_packet = 2*1024*1024*10;
ERROR 1227 (42000): Access denied; you need (at least one of) the SUPER privileg
e(s) for this operation
mysql> set global max_allowed_packet = 16M;
ERROR 1227 (42000): Access denied; you need (at least one of) the SUPER privileg
e(s) for this operation
mysql>
使用的是mysql-5.6.14-win32
解决方案 »
- 求一条多表联查SQL语句的优化。
- 怎么改mysql中my.ini的参数,用语句
- 查询语句的筛选条件,是从右向左判断的么
- mysql-mmm 读取配置mmm_common.cnf role 字段为空,待高手
- mysql 模糊查询 如何实现
- 为什么我的mysql不能远程连接.
- 如何把一个mysql的表转换成sql server2000的表
- mysql权限的菜鸟问题见笑了。
- 关于SQL统计
- 谁知道合理设置mysql配置文件吗,总是出现这个问题could not retrieve connection info from pool
- 怎么控制mysql每天零点自动执行一条插入语句
- 为什么用控台mysql -e命令执行sql语句不会记入binlog
grant all privileges on *.* to root@'%' identified by "123";
刚用mysql,不懂怎么处理
上面那句提示
ERROR 1045 (28000): Access denied for user ''@'localhost' (using password: NO)
my.ini 是哪里的?
我这里根目录有 my-default.ini 文件
内容
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL.[mysqld]
max_allowed_packet=32M# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin# These are commonly set, remove the # and set as required.
# basedir = .....
# datadir = .....
# port = .....
# server_id = .....
# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
但是还是不行哦