Comments (9)
Hello Unknwon,
"1:9" means there is an error near line 1 and column 9.
For your error log, there is a compile error in "use gogs.tidb" near the dot (the 9th character). I check parser/parser.y and find that use statement does not allow dbname with a dot. See: https://github.com/pingcap/tidb/blob/master/parser/parser.y#L3268
Thanks!
from tidb.
@unknwon please review this #33
Current error log looks like this:
tidb> use gogs.tidb;
2015/09/07 12:36:20 session.go:123: [error] Syntax error: use gogs.tidb;
2015/09/07 12:36:20 session.go:124: [error] Error occurs at line 1 column 9 near ".".
from tidb.
OK, thanks!
But please add this to docs.
from tidb.
Just tested again without dot in db name:
2015/09/07 05:32:52 session.go:123: [error] Compile sql error: use gogs-tidb - 1:9 expected one of [$end, ';', CHARACTER, CHARSET, COLLATE, DEFAULT]
[xorm] [info] 2015/09/07 05:32:52.159445 [sql] SELECT `TABLE_NAME`, `ENGINE`, `TABLE_ROWS`, `AUTO_INCREMENT` from `INFORMATION_SCHEMA`.`TABLES` WHERE `TABLE_SCHEMA`=? AND (`ENGINE`='MyISAM' OR `ENGINE` = 'InnoDB') [data/gogs-tidb]
Exactly same error... is it really about database name?
from tidb.
My bad.... -
can't be used either. 😭
from tidb.
@unknwon try _
from tidb.
@unknwon we only support letters, numbers and '_' in dbname and it must starts with a letter. Try gogs_tidb please.
You got the old style error log? Have you pulled the latest code and rebuild TiDB?
from tidb.
Thank you both @mathiasrw @shenli
Please put that on docs... it is very confusing.
from tidb.
I will improve the docs. Thanks!
from tidb.
Related Issues (20)
- DATA RACE in the TestShuffleMergeJoinInDisk HOT 1
- DATA RACE in the TestWriteMultiValuedIndex
- Inconsistent results after disabling partition_processor
- Query execution failed after disabling some optimization rules HOT 1
- make channel frequently in the sortExec.Open HOT 1
- Empty groupOffset in StreamAggExec causes panic HOT 3
- Logger Performance Impact in info-level Mode at the ddl.LoadTiFlashReplicaInfo
- try to optimize index lookup query may send too many cop task
- Param as column alias can't be parsed in group statement HOT 1
- ```types.MakeDatums``` take too much time in the (*memtableRetriever).setDataFromTables
- Additional metadata to be logged when Data too Long error is thrown
- `round` function on exact number produces different result from MySQL HOT 1
- TiKV and TiFlash behave differently when performing division. HOT 1
- TiKV and TiFlash behave differently when performing type conversion HOT 1
- TiKV and TiFlash behave differently when using `right` function with negative number and type conversion HOT 1
- A TiDB Serverless Docker image for local development?
- remove useless strings.ToLower in the (*Explain).RenderResult
- (*HashAggExec).initForParallelExec is too slow
- Query produces different results after disabling some optimization rules
- flaky test TestTiDBTrx
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tidb.