
文档解释
Error number: MY-010235; Symbol: ER_SQL_USER_TABLE_CREATE_WARNING; SQLSTATE: HY000
Message: Following users were specified in CREATE USER IF NOT EXISTS but they already exist. Corresponding entry in binary log used default authentication plugin ‘%s’ to rewrite authentication information (if any) for them: %s
MY-010235(ER_SQL_USER_TABLE_CREATE_WARNING)为MySQL错误,该错误对应SQLSTATE值为HY000。
错误说明
该错误表示当流程尝试访问MySQL时发生问题,生成此错误消息。当用户尝试访问MySQL的数据库时,会出现这一错误。它也可能是由于空域或数据表的权限问题或由于其他原因而导致的。
常见案例
当用户发出语句时,可能会看到如下错误:
”MySQL error #10235: ER_ SQL_USER_TABLE_CREATE_ WARNING:一次警告,用户已被创建为MySQL数据表。“
这可能是因为用户正在尝试访问MySQL数据库,但没有充分的权限。它也可能是因为字段类型不正确,字段长度不匹配,以及其他一些可能的原因而导致的。
解决方法
如果用户想解决MySQL错误# 10235,可以尝试检查其权限,尤其是对MySQL数据库的权限。可以使用以下语句:GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP获取权限。也可以使用以下语句撤消现有的权限:REVOKE CONNECT,SELECT,INSERT,UPDATE,DELETE,CREATE,DROP ON>服务器首选树叶云,2H2G首月10元开通。树叶云(www.IDC.Net)提供简单好用,价格厚道的香港/美国云服务器和独立服务器。IDC+ISP+ICP资质。ARIN和APNIC会员。成熟技术团队15年行业经验。
怎么远程登录Ubuntu下mysql数据库
mysql error number 2003Cant connect to MySQL Server ()在ubuntu 9.04中默认安装了mysql,默认只能本地访问,google了一下:采用登录到MySQL服务器端,在mysql库下执行grant all on *.* to remote@172.16.21.39 identified by passWORD;即可如果要设置为任何客户端都可以以root连接的话,可以这么写:grant all on *.* to root@% identifiied by root的密码格式:grant select on 数据库.* to 用户名@登录主机 identified by 密码类似这用方法的整理如下:1。 改表法。 可能是你的帐号不允许从远程登陆,只能在localhost。 这个时候只要在localhost的那台电脑,登入mysql后,更改 mysql 数据库里的 user 表里的 host 项,从localhost改称%mysql -u root -pvmwaremysql>use mysql;mysql>update user set host = % where user = root;mysql>select host, user from user;2. 授权法。 例如,你想myuser使用mypassword从任何主机连接到mysql服务器的话。 GRANT ALL PRIVILEGES ON *.* TO myuser@% IDENTIFIED BY mypassword WITH GRANT OPTION;如果你想允许用户myuser从ip为192.168.1.3的主机连接到mysql服务器,并使用mypassword作为密码GRANT ALL PRIVILEGES ON *.* TO myuser@192.168.1.3 IDENTIFIED BY mypassword WITH GRANT OPTION;但问题仍没有解决:找到 命令 mysql> flush privileges //使修改生效显示影响了零行。 问题依然没有解决,重新启动mysql sudo /etc/init.d/mysql restart还是不行。 从了解到mysql有本机绑定,找到问题所在。 编辑 /etc/mysql/# Instead of skip-networking the default is now to listen only on# localhost which is more compatible and is not less -address = 127.0.0.1将”bind-address = 127.0.0.1“注释sudo /etc/init.d/mysql restart重启即可远程访问问题解决****************************************************************************************root@kiki-desktop:/etc/apache2# apt-get install libapache2-mod-auth-mysqlapt-get install lighttpdapt-get install opensslroot@kiki-desktop:/etc/apache2# apt-get install libapache2-mod-gnutls$ mysql -u root -pmysql> use authz_db;mysql> CREATE TABLE users(-> user_name CHAR(30) NOT NULL,-> user_passwd CHAR(20) NOT NULL,-> PRIMARY KEY (user_name)-> );mysql> GRANT SELECT-> ON authz_-> TO authuser@localhost-> IDENTIFIED BY Your Password Here;mysql> flush privileges;mysql> INSERT INTO users VALUES(test,ENCRYPT(TEST));root@kiki-desktop:/etc/apache2# chkconfig --level 35 mysqld on---------------------------------如果要设置为任何客户端都可以以root连接的话,可以这么写:grant all on *.* to root@% identifiied by root的密码进入mysql,grant all on *.* to root@% identifiied by root的密码root@kiki-desktop:/etc/mysql# vim /etc/mysql/编辑 /etc/mysql/# Instead of skip-networking the default is now to listen only on# localhost which is more compatible and is not less -address = 127.0.0.1将”bind-address = 127.0.0.1“注释root@kiki-desktop:/etc/mysql# /etc/init.d/mysql restar
oracle数据库中提示标识符错误
试试create or replaceprocedure selectnowgoods(pagenow in number,pagesize in number ,myrows out number,mypagecount out number,mycursor out _emp)isv_sql VARCHAR2(1000);v_rules VARCHAR2(1000);v_begin NUMBER:=(pagenow-1)* pagesize+1;v_end NUMBER:= pagenow* pagesize;BEGINv_sql:=select * from(select t1.*, rownum rn from (select * from tb_goods where newgoods=是 ) t1 where rownum <=|| v_end||) where rn>=|| v_begin || ;open mycursor for v_sql;v_sql:=select count(*) from tb_goods where newgoods=是;EXECUTE IMMEDIATE v_sql into myrows;if mod(myrows, pagesize)=0 thenmypagecount:=myrows/ pagesize;elsemypagecount:= myrows/ pagesize+1;end if;end;


怎样修复mysql表
有两种方法,一种方法使用mysql的check table和repair table 的sql语句,另一种方法是使用MySQL提供的多个myisamchk, isamchk数据检测恢复工具。 前者使用起来比较简便。 推荐使用。 1. check table 和 repair table登陆mysql 终端:mysql -uxxxxx -p dbnamecheck table tabTest;如果出现的结果说Status是OK,则不用修复,如果有Error,可以用:repair table tabTest;进行修复,修复之后可以在用check table命令来进行检查。 在新版本的phpMyAdmin里面也可以使用check/repair的功能。 2. myisamchk, isamchk其中myisamchk适用于MYISAM类型的数据表,而isamchk适用于ISAM类型的数据表。 这两条命令的主要参数相同,一般新的系统都使用MYISAM作为缺省的数据表类型,这里以myisamchk为例子进行说明。 当发现某个数据表出现问题时可以使用:myisamchk 进行检测,如果需要修复的话,可以使用:myisamchk -of 关于myisamchk的详细参数说明,可以参见它的使用帮助。 需要注意的时在进行修改时必须确保MySQL服务器没有访问这个数据表,保险的情况下是最好在进行检测时把MySQL服务器Shutdown掉。 -----------------------------另外可以把下面的命令放在你的里面启动MySQL服务器前:[ -x /tmp/ ] && /pathtochk/myisamchk -of /DATA_DIR/*/*其中的/tmp/是MySQL监听的Sock文件位置,对于使用RPM安装的用户应该是/var/lib/mysql/,对于使用源码安装则是/tmp/可以根据自己的实际情况进行变更,而pathtochk则是myisamchk所在的位置,DATA_DIR是你的MySQL数据库存放的位置。 需要注意的时,如果你打算把这条命令放在你的里面,必须确认在执行这条指令时MySQL服务器必须没有启动!检测修复所有数据库(表)
发表评论