- 0
from MySQL, MySQLi or PDO and mysqli::$connect_error - the script for errors in the db-connection
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Popular Now
-
12
By Sagar Naresh
Started
-
-
Posts
-
By Mrwhatever85 · Posted
how am i gonna teach my grandma understand a new OS now ? -
-
Spotify 1.2.66.445 by Razvan Serea Spotify for Windows is your ultimate music and podcast streaming app, designed for a seamless listening experience. Enjoy millions of songs, curated playlists, and personalized recommendations tailored to your taste. Spotify delivers high-quality audio streaming with bitrates up to 320 kbps for Premium users and 160 kbps on the Free tier. Music is streamed in Ogg Vorbis format on the app and AAC on web browsers, ensuring efficient delivery and compatibility. Adaptive bitrate technology adjusts quality based on network conditions, while Premium users enjoy offline downloads for uninterrupted playback. Podcasts are streamed at slightly lower bitrates, typically 96-128 kbps, to balance quality and data usage. Spotify works across smartphones, desktops, smart speakers, game consoles, and more, with Spotify Connect enabling smooth cross-device playback. Features like real-time lyrics, curated playlists, and personalized EQ settings elevate the listening experience, making Spotify a versatile platform for music and podcasts alike. Spotify Free features: Stream Millions of Songs - Access a vast library of music across various genres and artists. Curated Playlists - Discover ready-made playlists for every mood and moment. Shuffle Play Mode - Enjoy songs in random order with shuffle-enabled playback. Personalized Recommendations - Get music suggestions based on your listening habits. Access to Podcasts - Explore a wide range of podcasts on topics you love. Ad-Supported Listening - Stream music with occasional audio and display ads. No Subscription Required - Enjoy music without any payment commitment. Cross-Device Sync - Listen seamlessly on mobile, desktop, or web browser. Basic Playback Controls - Play, pause, and skip tracks within shuffle limitations. Discover Weekly & Release Radar - Stay updated with custom playlists for new music. Download: Spotify 1.2.66.445 | ARM64 | ~100.0 MB (Free, paid upgrade available) View: Spotify Website | Web Player Get alerted to all of our Software updates on Twitter at @NeowinSoftware
-
By leonsk29 · Posted
Understandable, they need to make money somehow to keep the service "free". If you're not paying with money, you'll pay with something else. In this case, it's ads. People will bitch about this (as usual), but it's basic economics, everything has a price, like YouTube (non-premium). -
By RejZoR · Posted
A sign of a man with absolutely no taste. Also the first American president to whine about American "jobs" while selling Chinese stuff for 5x or 10x the actual worth while slapping his stupid name on it. Like, what even is this, some really bad, humorless parody? Nope, it's the actual reality. Selling Chinese bible, selling EV's on White House front yard, selling Chinese phones that are wrapped in few microns of gold for 3x the value... It's so hilarious it's cringy af.
-
-
Recent Achievements
-
patrickft456 earned a badge
Week One Done
-
patrickft456 earned a badge
One Month Later
-
Jdoe25 earned a badge
One Month Later
-
Legend20 went up a rank
Explorer
-
jezzzy earned a badge
One Month Later
-
-
Popular Contributors
-
Tell a friend
Question
tarifa
hello dear experts -.
good day @all - my name is tarifa - i am pretty new to this forum.
well today i need your help in a wordpress issue.
i thought that during the installation process the file wp-config-sample.php gets to wp-config.php - but this is not happening. - i have gathered some more infos and inights due to some tests. see the following data: - the outcome of a testscript:
Warning: mysqli_connect(): (HY000/2002): No such file or directory in /sites/www.mysite.de/tests.php on line 3 Warning: mysqli_error() expects parameter 1 to be mysqli, boolean given in /sites/www.mysite.de/tests.php on line 4 could not connect
see the script;
on the webmin-frontend (that is the area i have to controll and configure all the stuff on the server')
1 USE yourdatabase; 2 SHOW GLOBAL VARIABLES LIKE 'PORT'; 3 SHOW GRANTS FOR CURRENT_USER;
i get back the following results:
check the manual that corresponds to your MySQL server version for the right syntax to use near ''name of my db'; SHOW GLOBAL VARIABLES LIKE 'PORT'; SHOW GRANTS FOR CURRENT_USER' at line 1
and the following
Failed to execute SQL : SQL USE 'name of my db'; SHOW GLOBAL VARIABLES LIKE 'PORT'; SHOW GRANTS FOR CURRENT_USER; failed : You have an error in your SQL syntax;
well - i am a bit unsure what i can do now.
well - since there is no connection_error property in mysqli. i think that i have to check connection error using
if ($conn->connect_error) { die('Connect Error: ' . $conn->connect_error); }
well i have to read the manpages here http://php.net/manual/en/mysqli.connect-error.php in order to learn what i need to get more insights.,
btw: I have Linux Server. Apache 2.4.10, PHP Version 5.6.39 and mysqlnd 5.0.11-dev - 20120503 - installed. There are several wordpress website running on server.
do i have MySQL or MySQLi - i am not sure.
what would you do now!?
by the way: just another question.... regarding the different systems in DB-terms: we have got different systems that are available generally...
MySQL - MySQLI and PDO . if we compare the different systems then we can say.
a. The now extinct mysql library and the mysqli library are two completely different animals.
b. we may forget about mysqli - since PDO is much much better - so we should probably make use of PDO.
see the three systems in a ASCII - Comparison..:
+---------+-------------+
| mysql | dodo |
| mysqli | donkey |
| PDO | racehorse |
what do you suggest - should i ask my serveradmin that he will update & upgrade the whole system - in order to have a modern system... And then i run the mysqli_error_(function)
Love to hear from you
regards Tarifa
Link to comment
https://www.neowin.net/forum/topic/1384033-from-mysql-mysqli-or-pdo-and-mysqliconnect_error-the-script-for-errors-in-the-db-connection/Share on other sites
6 answers to this question
Recommended Posts