Buy this Domain

Community Discussions

Explore the latest discussions and community conversations related to this domain.

In mysql, the show databases; command doesn't list all of my databases - Stack Overflow

Main Post: In mysql, the show databases; command doesn't list all of my databases - Stack Overflow

Forum: stackoverflow.com

How to show database title?

Main Post:

I accidentally clicked the "hide" button

Top Comment: Click on the view tab and select Edit view then go into Layout and reenable Show database title.

Forum: r/Notion

UX, long food name from database doesn't fully show,

Main Post: UX, long food name from database doesn't fully show,

Top Comment:

The page you are looking at will no longer exist in the near future, it’s going away after the food log timeline revamp we have planned.

I believe you would have been able to see the full name while you were logging this food, on tap, and in the future that will also be true from the food log timeline, on tap.

Forum: r/MacroFactor

The Mastering Show Podcast: "Reference tracks @ -12 dB LUFS???"

Main Post:

In one of the early episodes of the Mastering Show podcast, Ian Shepherd talks about using reference tracks to compare against your own tracks for loudness. He says you should set the playback level of your reference tracks to -12 dB LUFS.

Since the loudness of the reference tracks is already determined by the mastering which has previously been applied to them, then what does this mean exactly?

Top Comment:

A reference track is meant to be useful for your ears, not your eyes watching a meter. So set the reference using a meter to know it's at a good loudness level by modern standards, then use your ears to match your own track to the overall loudness and frequency balance.

Forum: r/audioengineering

Check for a database connection without throwing error when failed?

Main Post:

Hi,

so, I'm creating some kind of first page that checks if Laravel is connected to a database (using credentials from the .env file) or not and then render different view elements based on it.

Using the big wide web, one solution i came by is

// Test database connection try { DB::connection()->getPdo(); } catch (\Exception $e) { die("Could not connect to the database. Please check your configuration. error:" . $e ); }

However, this part of the code is not even executed if:

  • .env values, like DB_DATABASE, DB_PORT, ... are missing
  • DB_PORT is non existent (e.g. 3333333)

Somehow, Laravel throws errors for a non existent database, like e.g.

SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO) (SQL: select * from `color`)

before I am even able to check myself for it.

Tl;Dr

I'm looking for a way to pass a view variable, true/false if the Laravel project is connected to a database or not, without throwing pre-errors for false or non-existent values inside the .env file. I want to handle these errors myself on a controller level.

Edit: Solved

Top Comment: I'm not sure it's possible because .env is config file and it should be always (somehow) set. It looks like bad architecture (sorry about that) for project. However Laravel is supporting multiple databases - https://laravel.com/docs/8.x/database#using-multiple-database-connections

Forum: r/laravel