Prefix db (table not found)
See original GitHub issueThere is a problem with database prefixing.
SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘default.prefix_ltm_translations’ doesn’t exist (SQL: select
locale
fromprefix_ltm_translations
group bylocale
)
Library ignores that default connection has set “prefix”.
Furthermore if i try to manually change column to “ltm_translations” (to non-prefixed version) still is error, this time:
SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘default.ltm_translations’ doesn’t exist
I guess there is mix of raw queries and eloquent queries. The solution is use DB::getTablePrefix() or similar in this raw queries.
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Database > Table Prefix > WordPress Missing - Stack Overflow
Open your wp-config.php file which is located in your WordPress root directory. Change the table prefix line from wp_ to something else like ......
Read more >Table Prefix Problem or Not? - DBA Stack Exchange
I am trying to determine if I actually have a db table prefix problem or not in my wordpress db. I am on...
Read more >Magento 245 - Elasticsearch error caused by prefix-table ...
When upgrading to 2.4.5 my catalog pages all have this error. Base table or view not found: 1146 Table 'databaseuser.eav_attribute' doesn't ...
Read more >Error: Joomla tables not found - WordPress.org
When I received the “[ERROR] Joomla tables not found. Please make sure you have entered the right Joomla database name and table prefix”...
Read more >Database instance table prefix is not used in the creation of a ...
CAUSE: This is working as designed. Datamart tables have their own table prefix which can be specified in the Report Editor under Data...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mgralikowski, fixed version released.
@mgralikowski, made a release into Laravel-5.5 branch with merge #132