question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Prefix db (table not found)

See original GitHub issue

There 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 from prefix_ltm_translations group by locale)

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:open
  • Created 5 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
vschcommented, Oct 15, 2018

@mgralikowski, fixed version released.

0reactions
vschcommented, Oct 16, 2018

@mgralikowski, made a release into Laravel-5.5 branch with merge #132

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found