Learn SQLSTATE, sqlstate08001
1. What is SQLSTATE?
Shell> SELECT * FROM no_such_table;
ERROR 1146 (42S02): Table 'test. no_such_table 'doesn' t exist
Display after an error occurs in the preceding SQL statement. 1146 is the error code defined by MySQL, and 42S02 is the error code defined by ansi SQL and ODBC. "Table 'test. no_such_table 'doesn' t exist" is the error cause returned by MySQL.
Here, 42S02 is t
java.net.SocketException:Error opening socket to server/10.105.4.55 on port 50,001 with Message:network is un Reachable. errorcode=-4499, sqlstate=08001At org.apache.sqoop.mapreduce.db.DBInputFormat.setConf (dbinputformat.java:167)At org.apache.hadoop.util.ReflectionUtils.setConf (reflectionutils.java:70)At Org.apache.hadoop.util.ReflectionUtils.newInstance (reflectionutils.java:130)At Org.apache.hadoop.mapred.MapTask.runNewMapper (maptask.java:636)A
In MySQL, the characters in the following table are explicitly reserved. Most of these digital binaries are used by standard SQL as column names and/or table names (for example, GROUP). A few are retained because MySQL needs them and (currently) uses the YACC parser. Reserved words can be used as identifiers when they are caused.You accidentally use the following keyword, then you will report this error."SQL error:1064, sqlstate:42000 error"
In MySQL, the characters in the following table are explicitly reserved. Most of these digital binaries are used by standard SQL as column names and/or table names (for example, GROUP). A few are retained because MySQL needs them and (currently) uses the YACC parser. reserved words can be used as identifiers when they are caused. You accidentally use the following keyword, then you will report this error."SQL error:1064, sqlstate:42000 error"
SQLcode error code summary and sqlstate = 37000 Solutions
Today, when I used Power Designer to reverse the database for the second time, I encountered a problem:
Unable to list the users.
[Microsoft] [odbc SQL Server Driver] [SQL Server] cannot predefine statements
SQLSTATE = 37000
After searching for half a day, we can solve the problem as follows. In the final analysis, an error occurs in the second
Database software error suddenly reported {code...} wamp integration environment suddenly sauce purple query helpless English poor special help the great gods have a way, or only reinstall the database software suddenly reported an error
SQLSTATE [HY000]: General error: 1 Can't create/write to file 'C: \ WINDOWS \ TEMP \ # sql1324_fe_0.myi' (Errcode: 2-No such file or directory)
Wamp integration environment suddenly sauce purple check helpless Eng
Minute_second
MOD
Modifies
NATURAL
Not
No_write_to_binlog
Null
NUMERIC
On
OPTIMIZE
OPTION
Optionally
OR
ORDER
Out
OUTER
OUTFILE
PRECISION
PRIMARY
PROCEDURE
PURGE
RAID0
RANGE
READ
READS
REAL
REFERENCES
Regexp
RELEASE
RENAME
REPEAT
REPLACE
Build an ODS data platform test environment this few days, and the platform can integrate other application systems. Altogether are 8 systems. Platform login using the single sign-on plus platform app. Each time the platform war is launched during deployment, it is reported that a could not get database metadata cannot get the metadata.Wrong original:[ -- One- - A: the: -:248CST]00000092SystemOut O .- One- - A: the: -,247[Webcontainer:1]ERROR o.h.tool.hbm2ddl.schemaupdate Schemaupdate#execute
PHP Artisan migrate times error in MacSQLSTATE[HY000] [2002] No such file or directory (Sql:select * from information_schema.tables where table_schema = Weifen Xiao and table_name = migrations)[Pdoexception]SQLSTATE[HY000] [2002] No such file or directoryThis is due to the fact that the Mysql.sock file could not be found.1. Execute SQL statement inside MySQL show variables like '%sock% '2. The corresponding value of the field corresponding to the resu
As shown below, PHP connection MySQL error:
SQLSTATE[HY000] [2002] Can ' t connect to local MySQL server through socket ' MySQL ' (2)
The test code is as follows:" Solutions "Change host=localhost to host=127.0.0.1 !
Solution to connect MySQL hint can ' t connect to local MySQL server through socketmysql,mysqldump,mysqladmin,php connecting to MySQL service often prompts the following error:
ERROR 2002 (HY000): Can ' t conn
Tags: jdbctemplateI'm using org.springframework.jdbc.core.JdbcTemplate to execute a sentence like this. The SQL Times is wrong:INSERT into Customerbranch(ID, optimistic, frp_id, Paymentchannel, customer_id, bank_id, UpdateTime)SELECT NEXT VALUE for Customerbranch_id_sequence,0, 1005, ' NET ',?, BankID, Current_timestampFrom (SELECT DISTINCT f.bank_id as BankIDFrom Frpbusiness FB, FRP Fwhere f.id = Fb.id and FB. Business in (' DEBIT ', ' credits ', ' business-to-business '))The main error message
Tags: io art for re c CTI Div arDB2 Error sqlstate=57017 "code page" 1392 ""$ DB2 Connect to TestDBsql0332n Character Conversion from the source code page ' 1392 ' to the targetThe code page "UNKNOWN" is not supported. sqlstate=57017$ db2set db2codepage=1386$ db2set db2territory=86$ DB2 Terminatedb20000i the TERMINATE command completed successfully.$ db2stop2013-06-06 12:56:59 0 0 sql1064n db2stop processin
Today, when I used Power Designer to reverse the database for the second time, I encountered a problem:
Unable to list the users.
[Microsoft] [odbc SQL Server Driver] [SQL Server] cannot predefine statements
SQLSTATE = 37000
SQL Server2005 Chinese Version
Www.33lc.com/soft/12358.html
After searching for half a day, we can solve the problem as follows. In the final analysis, an error occurs in the second step.
Solution:
Step 1:
Connection Failed sqlstate: '200' SQL Server Error: 01000 [Microsoft] [odbc SQL Server Driver] [TCP/IP sockets] connectionopen (connect () Connection Failed: SQL state: '000000' SQL Server Error: 17 [Microsoft] [odbc SQL Server Driver] [TCP/IP sockets] SQL server does not exist or access is denied.
Solution:->
There are some common solutions on the Internet that I will not repeat here. I encountered this problem in actual use and could not so
Xxx_plugin by ' password ', such as:CREATE USER ' native '@'localhost'with by'password!2#4 ';
Use ALTER user to modify the validation plugin for an existing account:ALTER USER ' native '@'localhost' with Mysql_native_passwordOrALTER USER ' native '@'localhost'with by'new_password ';In the previous way, the password for the account will be cleared; The BY clause will set a new password for the account.
In the/ETC/MY.CNF configuration file, there is a line:# Default-authentication-plugin=mysq
An error occurred while using Yii's yii\db\connnectionError:Workaround: Change localhost in the config directory to 127.0.0.1 in the db.php configuration fileMySQL uses a UNIX domain socket connection when the host is populated with localhostWhen the host is filled in as 127.0.0.1, MySQL will connect using TCPThis is the feature of the Linux socket network, the win platform will not have this problem YII error sqlstate[hy000] [2002] No such file or d
In reverse engineering, the following errors sometimes occur...[Microsoft] [ODBC SQL Server Driver] [SQL Server] cannot predefine statementsSQLSTATE = 37000Solution:1. Select the database-and change-current DBMS in the menu bar to select SQL Server2005 for the DBMS.2. Reconfigure the ODBC connection, data source ODBC, administrative Tools, add-In User DSN tab options, click the Select box to create a new data source, drag the scroll bar to the bottom, select SQL Srever point completion, a new da
Label:SQLSTATE[HY000] [2003] Can ' t connect to MySQL server on ' XXX ' (13)I can really see the problem of SELinux, and this question has made me look for a long time reason:The result is that SELinux does not allow httpd to access the extranet, the Chrome browser was installed yesterday, the result does not allow the root account to run ....SQLSTATE[HY000] [2003] Can ' t connect to MySQL server on ' XXX ' (13)Workaround:Selinux settings Can ' t conn
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.