<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MySQL &#8211; Mario Chivale ♦ Personal Website</title>
	<atom:link href="https://www.mario.chivale.com/category/programming/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.mario.chivale.com</link>
	<description>Mario Chivale Personal Website ♦ IT • Informatyka • Computer Science • Elektronika • Electronics • Elektryka • Electricity</description>
	<lastBuildDate>Fri, 26 Jan 2024 18:03:05 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
	<item>
		<title>PHP MySQL Connect to Database PDO</title>
		<link>https://www.mario.chivale.com/php-mysql-connect-to-database/</link>
		
		<dc:creator><![CDATA[Tatsu]]></dc:creator>
		<pubDate>Sun, 21 Jan 2024 06:03:44 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[CONNECT]]></category>
		<category><![CDATA[Connection]]></category>
		<category><![CDATA[DATABASE]]></category>
		<category><![CDATA[DB Connect]]></category>
		<category><![CDATA[DB Connection]]></category>
		<category><![CDATA[PDO]]></category>
		<category><![CDATA[PHP Code]]></category>
		<guid isPermaLink="false">https://www.mario.chivale.com/?p=766</guid>

					<description><![CDATA[Below is a sample PHP code, that after configuration, can be used to connect to your database. &#60;?php $DBType = "mysql"; $DBHost = "database-host"; $DBPort = "3306"; $DBEnco = "utf-8"; $DBUser = "database-user"; $DBPass = "database-password"; $DBName = "database-name"; try { $DBCon=new PDO("$DBType:host=$DBHost;port=$DBPort;encoding=$DBEnco;dbname=$DBName",$DBUser,$DBPass); $DBCon-&#62;setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION); // Connected } catch(PDOException $DBError) { // Not Connected echo '&#60;strong&#62;'.$DBError-&#62;getMessage().'&#60;/strong&#62;'; [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Below is a sample PHP code, that after configuration, can be used to connect to your database.</p>
<pre>&lt;?php
$DBType = "mysql";
$DBHost = "database-host";
$DBPort = "3306";
$DBEnco = "utf-8";
$DBUser = "database-user";
$DBPass = "database-password";
$DBName = "database-name";
try {
$DBCon=new PDO("$DBType:host=$DBHost;port=$DBPort;encoding=$DBEnco;dbname=$DBName",$DBUser,$DBPass);
$DBCon-&gt;setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);
// Connected
} catch(PDOException $DBError) {
// Not Connected
echo '&lt;strong&gt;'.$DBError-&gt;getMessage().'&lt;/strong&gt;';
exit;
}
?&gt;</pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>MySQL Commands</title>
		<link>https://www.mario.chivale.com/mysql-commands/</link>
					<comments>https://www.mario.chivale.com/mysql-commands/#respond</comments>
		
		<dc:creator><![CDATA[Tatsu]]></dc:creator>
		<pubDate>Thu, 01 Jun 2023 05:02:22 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[ALTER]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Command]]></category>
		<category><![CDATA[Commands]]></category>
		<category><![CDATA[CONNECT]]></category>
		<category><![CDATA[Connections]]></category>
		<category><![CDATA[FLUSH]]></category>
		<category><![CDATA[Host]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[SELECT]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[user]]></category>
		<guid isPermaLink="false">https://www.mario.chivale.com/?p=614</guid>

					<description><![CDATA[Some of the most important SQL commands Connect to MySQL Server: mysql -u UserName -p Show Users: SELECT user FROM mysql.user; Show Users and Hosts: SELECT user,host FROM mysql.user; Change Password for User: ALTER USER 'UserName'@'Host' IDENTIFIED BY 'NewPassword'; FLUSH PRIVILEGES; If you have any questions, write your question bellow in the &#8220;Leave a Reply&#8221; [&#8230;]]]></description>
										<content:encoded><![CDATA[<h1 style="text-align: justify;">Some of the most important SQL commands</h1>
<p><strong>Connect to MySQL Server</strong>:</p>
<pre>mysql -u UserName -p</pre>
<p><strong>Show Users</strong>:</p>
<pre>SELECT user FROM mysql.user;</pre>
<p><strong>Show Users and Hosts</strong>:</p>
<pre>SELECT user,host FROM mysql.user;</pre>
<p><strong>Change Password for User</strong>:</p>
<pre>ALTER USER 'UserName'@'Host' IDENTIFIED BY 'NewPassword';
FLUSH PRIVILEGES;</pre>
<div align="center"><strong>If you have any questions,<br />
write your question bellow in the &#8220;Leave a Reply&#8221; form.<br />
<em>Thanks!</em></strong></div>
<p>&nbsp;</p>
<div align="center"><a title="PayPal- Donate" href="https://www.paypal.com/donate/?hosted_button_id=5TA4H4TJHD4BJ" target="_blank" rel="noopener"><img decoding="async" title="PayPal - Donate" src="/img/paypal-donate.webp" alt="Paypal - Donate" /></a></div>
<p style="text-align: justify;"><strong>MySQL</strong> is an <strong>open source</strong>, multi-dimensional, relational <strong>database management system</strong>. It is an essential tool for any webmaster/designer/developer, and to get started using it, one must understand the basic commands available.</p>
<p style="text-align: justify;">The most commonly used <strong>MySQL</strong> command is <strong>SELECT</strong>, which lets you query a database table for specific information. This is followed by <strong>INSERT</strong>, which inserts values into an existing row in the database table. <strong>UPDATE</strong> is also used to modify an existing record in the database, while <strong>DELETE</strong> removes an entry from the table. Other commands are used to create, alter, or drop a table, query a database, control user access, and export and import data.</p>
<p style="text-align: justify;"><strong>One of the most important MySQL commands</strong> is <strong>CREATE TABLE</strong>, which lets you add a new table to a database. This must be followed by the table name, the column names and the data types for each column. To delete a table, the <strong>DROP</strong> command is used. <strong>ALTER TABLE</strong> can be used to add, delete, modify, or rename a column within a table. The <strong>TRUNCATE</strong> command is used to delete all records from a table without dropping the entire table.</p>
<p style="text-align: justify;">Once a table has been added, <strong>MySQL</strong> commands must be used to store, modify, and query data that is stored within the table. For example, the <strong>INSERT</strong> command is used to add a row to an existing table. The <strong>UPDATE</strong> command lets you modify existing values in the table, while <strong>SELECT</strong> is used to search for data within the table.</p>
<p style="text-align: justify;">In addition to the above commands, there are many other MySQL commands that are commonly used. These may include commands to set up user accounts, create stored procedures, create triggers, export data, back up data, and more. MySQL commands should be learned and mastered by anyone who needs to manage or work with a complex database. With the help of these commands, a user can create and manipulate database tables, store and modify data, and query a database.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.mario.chivale.com/mysql-commands/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>mysqldump Backup Database and mysql Restore Database</title>
		<link>https://www.mario.chivale.com/mysqldump-backup-database-and-mysql-restore-database/</link>
					<comments>https://www.mario.chivale.com/mysqldump-backup-database-and-mysql-restore-database/#respond</comments>
		
		<dc:creator><![CDATA[Tatsu]]></dc:creator>
		<pubDate>Sun, 21 May 2023 04:54:43 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[backing up]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[backup database]]></category>
		<category><![CDATA[backup databass]]></category>
		<category><![CDATA[buckups]]></category>
		<category><![CDATA[DATABASE]]></category>
		<category><![CDATA[databases]]></category>
		<category><![CDATA[dump]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[mysqldump]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[restore]]></category>
		<category><![CDATA[restore database]]></category>
		<category><![CDATA[restore databases]]></category>
		<category><![CDATA[restoring]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[syntax]]></category>
		<category><![CDATA[user]]></category>
		<guid isPermaLink="false">https://www.mario.chivale.com/?p=552</guid>

					<description><![CDATA[Below are examples of backing up databases and examples of restoring database backups. Backup: mysqldump -u [user] -p[password] [db_name] &#62; /path/to/file.sql Restore: mysql -u [user] -p[password] [db_name] &#60; /path/to/file.sql If you have any questions, write your question bellow in the &#8220;Leave a Reply&#8221; form. Thanks! &#160; — Artificial Intelligence Comment — • Database backups are [&#8230;]]]></description>
										<content:encoded><![CDATA[<p style="text-align: justify;">Below are examples of <strong>backing up databases</strong> and examples of <strong>restoring database</strong> backups.</p>
<p><strong>Backup</strong>:<br />
mysqldump -u [user] -p[password] [db_name] &gt; /path/to/file.sql</p>
<p><strong>Restore</strong>:<br />
mysql -u [user] -p[password] [db_name] &lt; /path/to/file.sql</p>
<div align="center"><strong>If you have any questions,<br />
write your question bellow in the &#8220;Leave a Reply&#8221; form.<br />
<em>Thanks!</em></strong></div>
<p>&nbsp;</p>
<div align="center"><a title="PayPal- Donate" href="https://www.paypal.com/donate/?hosted_button_id=5TA4H4TJHD4BJ" target="_blank" rel="noopener"><img decoding="async" title="PayPal - Donate" src="/img/paypal-donate.webp" alt="Paypal - Donate" /></a></div>
<div align="center"><strong>— Artificial Intelligence Comment —</strong></div>
<div align="center">•</div>
<p style="text-align: justify;">Database backups are essential for any website or service. A <strong>mysqldump</strong> backup database is one of the most reliable and straightforward methods you can use to keep your data safe. It allows you to create a backup of your entire MySQL database, which can then be used to restore your database in case of an emergency.</p>
<p style="text-align: justify;">The <strong>mysqldump</strong> backup database process is relatively simple. First, you will need to logon to your server with the root user and access the MySQL prompt. From here, you can run the mysqldump command with the necessary parameters. These parameters include the database name, the user name, and the location where the dump should be stored. After you&#8217;ve issued the command, the backup database file will be created.</p>
<p style="text-align: justify;">If something goes wrong and you need to restore the database, the <strong>mysql</strong> restore database process is also fairly easy. You will first need to create a new empty database using the MySQL command prompt. After that, you can run the mysql command with the appropriate information to ingest the database dump file. This will restore the database to its original state.</p>
<p style="text-align: justify;">It&#8217;s important to remember that a <strong>mysqldump</strong> backup database is only one part of a comprehensive backup solution. You should also back up any important files such as configuration files or user data. Additionally, make sure to keep your backup files safe and secure, as they contain sensitive information about your website or service.</p>
<p style="text-align: justify;">In conclusion, the <strong>mysqldump</strong> backup database and <strong>mysql</strong> restore database processes are simple and effective ways of ensuring the safety of your database. By taking the necessary steps to regularly back up your database, you can ensure that your data will remain safe, even in the event of a disastrous situation.</p>
<p style="text-align: justify;">Backing up and restoring databases is a critical process in managing any database. One of the most common methods for backing up and restoring a MySQL database is to use mysqldump. <strong>mysqldump</strong> is a specialized utility written specifically for backing up and restoring MySQL data. It is considered one of the most reliable and powerful tools for backing up and restoring MySQL databases.</p>
<p style="text-align: justify;">Using the <strong>mysqldump</strong> command, you can easily save an entire database or just certain tables within that database. It will also allow you to export the data into a text file which is formatted in SQL commands that can later be used to re-create the entire database and/or tables. This makes it easy to back up an entire database or to copy it to another location.</p>
<p style="text-align: justify;">Restoring a database using <strong>mysqldump</strong> is almost as simple as backing it up. To restore a database, you must first create the database and then execute the SQL commands found in the text file. Once the commands have been successfully executed, the database will be restored and updated with the previously backed up data.</p>
<p style="text-align: justify;">In order to use the <strong>mysqldump</strong> utility correctly, it is important to understand all of its command line options. For example, the -u option is used to specify the user that will be used to connect to the server. The -p option indicates that the connection password will need to be supplied while the -h option allows you to specify the hostname of the server.</p>
<p style="text-align: justify;">Backing up and restoring databases with <strong>mysqldump</strong> is a reliable and powerful method for managing MySQL databases. With its easy-to-use command line options and ability to export SQL commands, <strong>mysqldump</strong> is the preferred tool for backing up and restoring MySQL data.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.mario.chivale.com/mysqldump-backup-database-and-mysql-restore-database/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>MySQL Connect Query Select Search Insert Update Delete</title>
		<link>https://www.mario.chivale.com/mysql-connect-query-select-search-insert-update-delete/</link>
					<comments>https://www.mario.chivale.com/mysql-connect-query-select-search-insert-update-delete/#respond</comments>
		
		<dc:creator><![CDATA[Tatsu]]></dc:creator>
		<pubDate>Sat, 22 Apr 2023 16:46:21 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[ALTER]]></category>
		<category><![CDATA[ALTER TABLE]]></category>
		<category><![CDATA[CONNECT]]></category>
		<category><![CDATA[CREATE]]></category>
		<category><![CDATA[CREATE DATABASE]]></category>
		<category><![CDATA[CREATE TABLE]]></category>
		<category><![CDATA[DATABASE]]></category>
		<category><![CDATA[DATABASE. ALTER DATABASE]]></category>
		<category><![CDATA[DELETE]]></category>
		<category><![CDATA[DROP]]></category>
		<category><![CDATA[INDEX]]></category>
		<category><![CDATA[INSERT]]></category>
		<category><![CDATA[INSERT INTO]]></category>
		<category><![CDATA[INTO]]></category>
		<category><![CDATA[QUERY]]></category>
		<category><![CDATA[SELECT]]></category>
		<category><![CDATA[SET]]></category>
		<category><![CDATA[TABLE]]></category>
		<category><![CDATA[UPDATE]]></category>
		<guid isPermaLink="false">https://mario.chivale.com/?p=445</guid>

					<description><![CDATA[MySQL Connect &#60;?php $mysqli = new mysqli(&#8220;host&#8221;, &#8220;username&#8221;, &#8220;password&#8221;, &#8220;dbname&#8221;, &#8220;port&#8221;, &#8220;socket&#8221;); if($mysqli -&#62; connect_errno) { echo &#8220;MySQL Connection Error: &#8221; . $mysqli -&#62; connect_error; exit(); } ?&#62; MySQL Query: If you have any questions, write your question bellow in the &#8220;Leave a Reply&#8221; form. Thanks! &#160; — Artificial Intelligence Comment — • MySQL is [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><strong>MySQL Connect</strong></p>
<p>&lt;?php<br />
$mysqli = new mysqli(&#8220;host&#8221;, &#8220;username&#8221;, &#8220;password&#8221;, &#8220;dbname&#8221;, &#8220;port&#8221;, &#8220;socket&#8221;);<br />
if($mysqli -&gt; connect_errno) {<br />
echo &#8220;MySQL Connection Error: &#8221; . $mysqli -&gt; connect_error;<br />
exit();<br />
}<br />
?&gt;</p>
<p>MySQL Query:</p>
<div align="center"><strong>If you have any questions,<br />
write your question bellow in the &#8220;Leave a Reply&#8221; form.<br />
<em>Thanks!</em></strong></div>
<p>&nbsp;</p>
<div align="center"><a title="PayPal- Donate" href="https://www.paypal.com/donate/?hosted_button_id=5TA4H4TJHD4BJ" target="_blank" rel="noopener"><img decoding="async" title="PayPal - Donate" src="/img/paypal-donate.webp" alt="Paypal - Donate" /></a></div>
<div align="center"><strong>— Artificial Intelligence Comment —</strong></div>
<div align="center">•</div>
<p style="text-align: justify;">MySQL is a database management system that has become very popular among web developers and system administrators. It provides powerful features, such as querying, searching, inserting, updating, and deleting data. In this article, we will take a look at how to connect to MySQL, use queries to select, search, insert, update and delete data.</p>
<p style="text-align: justify;">To begin, we need to connect to the MySQL server using either the command line interface or a suitable tool like phpMyAdmin. Once connected, we can create a database, tables, and insert data. With a properly configured database, we can begin running queries.</p>
<p style="text-align: justify;">The most basic query is the SELECT statement which retrieves data from the database. We will specify what data to be retrieved, the table in which it is stored and any optional conditions or orderings.</p>
<p style="text-align: justify;">For example, a query to retrieve all rows from the &#8220;users&#8221; table could look like this: SELECT * FROM users.</p>
<p style="text-align: justify;">To make more specific queries, we can use the WHERE clause to limit the result set. For example: SELECT * FROM users WHERE age &gt; 20. This query will only return records of users that are older than 20.</p>
<p style="text-align: justify;">In addition to retrieving records, MySQL also allows us to search for data in text fields. The LIKE operator can be used to search for a certain string in a particular field. For example, if we wanted to search for users with a certain name we could use this query: SELECT * FROM users WHERE name LIKE &#8216;John&#8217;</p>
<p style="text-align: justify;">Inserting data into the database is quite easy as well. All we need to do is use the INSERT statement with the required columns and values. For example: INSERT INTO users (name, email, age) VALUES (&#8216;John&#8217;, &#8216;john@example.com&#8217;, 32). This query will insert a record with the values provided into the users table.</p>
<p style="text-align: justify;">Updating records is also simple. To update one or more records, we can use the UPDATE statement. For example: UPDATE users SET age = 33 WHERE name = &#8216;John&#8217;. This will set the age of any user with the name &#8220;John&#8221; to 33.</p>
<p style="text-align: justify;">Finally, to delete records from the database, we can use the DELETE statement. For example: DELETE FROM users WHERE age &gt; 40. This query will delete any user records with an age greater than 40.</p>
<p style="text-align: justify;">MySQL has many powerful features for managing, querying, searching, inserting, updating, and deleting data. By following the instructions in this article, you will be able to use these features to your advantage.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.mario.chivale.com/mysql-connect-query-select-search-insert-update-delete/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>phpMyAdmin Deprecation Notice in PHP 8</title>
		<link>https://www.mario.chivale.com/phpmyadmin-deprecation-notice-in-php-8/</link>
					<comments>https://www.mario.chivale.com/phpmyadmin-deprecation-notice-in-php-8/#respond</comments>
		
		<dc:creator><![CDATA[Tatsu]]></dc:creator>
		<pubDate>Sat, 22 Apr 2023 12:51:04 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[8]]></category>
		<category><![CDATA[Deprecation]]></category>
		<category><![CDATA[general]]></category>
		<category><![CDATA[general-purpose]]></category>
		<category><![CDATA[general-purpose scripting language]]></category>
		<category><![CDATA[Hypertext Preprocessor]]></category>
		<category><![CDATA[in]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[Notice]]></category>
		<category><![CDATA[Personal Home Page]]></category>
		<category><![CDATA[PHP 8]]></category>
		<category><![CDATA[phpMyAdmin]]></category>
		<category><![CDATA[phpMyAdmin Deprecation Notice in PHP 8]]></category>
		<category><![CDATA[purpose]]></category>
		<category><![CDATA[scripting]]></category>
		<guid isPermaLink="false">https://mario.chivale.com/?p=435</guid>

					<description><![CDATA[ERROR (example): Deprecation Notice in ./../../php/Twig/Loader/FilesystemLoader.php realpath(): Passing null to parameter #1 ($path) of type string is deprecated Backtrace FilesystemLoader.php: realpath(NULL) ./libraries/classes/Template.php: TwigLoaderFilesystemLoader-&#62;__construct(string &#8216;/usr/share/phpmyadmin//templates/&#8217;) ./libraries/classes/Theme.php: PhpMyAdminTemplate-&#62;__construct() ./libraries/classes/Theme.php: PhpMyAdminTheme-&#62;__construct() ./libraries/classes/ThemeManager.php: PhpMyAdminTheme::load( string &#8216;./themes/pmahomme&#8217;, string &#8216;/usr/share/phpmyadmin/./themes/pmahomme/&#8217;, ) ./libraries/classes/ThemeManager.php: PhpMyAdminThemeManager-&#62;loadThemes() ./libraries/classes/ThemeManager.php: PhpMyAdminThemeManager-&#62;__construct() ./libraries/classes/ThemeManager.php: PhpMyAdminThemeManager::getInstance() ./libraries/common.inc.php: PhpMyAdminThemeManager::initializeTheme() ./index.php: require_once(./libraries/common.inc.php) *** Deprecation Notice in ./../../php/Twig/Node/Node.php Return type of TwigNodeNode::getIterator() should [&#8230;]]]></description>
										<content:encoded><![CDATA[<p style="text-align: justify;"><span style="color: #ff0000;"><strong>ERROR (example)</strong></span>:</p>
<p style="text-align: justify;"><strong>Deprecation Notice</strong> in ./../../php/Twig/Loader/FilesystemLoader.php<br />
realpath(): Passing null to parameter #1 ($path) of type string is deprecated</p>
<p style="text-align: justify;"><strong>Backtrace</strong></p>
<p style="text-align: justify;">FilesystemLoader.php: realpath(NULL)<br />
./libraries/classes/Template.php: TwigLoaderFilesystemLoader-&gt;__construct(string &#8216;/usr/share/phpmyadmin//templates/&#8217;)<br />
./libraries/classes/Theme.php: PhpMyAdminTemplate-&gt;__construct()<br />
./libraries/classes/Theme.php: PhpMyAdminTheme-&gt;__construct()<br />
./libraries/classes/ThemeManager.php: PhpMyAdminTheme::load(<br />
string &#8216;./themes/pmahomme&#8217;,<br />
string &#8216;/usr/share/phpmyadmin/./themes/pmahomme/&#8217;,<br />
)<br />
./libraries/classes/ThemeManager.php: PhpMyAdminThemeManager-&gt;loadThemes()<br />
./libraries/classes/ThemeManager.php: PhpMyAdminThemeManager-&gt;__construct()<br />
./libraries/classes/ThemeManager.php: PhpMyAdminThemeManager::getInstance()<br />
./libraries/common.inc.php: PhpMyAdminThemeManager::initializeTheme()<br />
./index.php: require_once(./libraries/common.inc.php)</p>
<p style="text-align: center;"><strong>***</strong></p>
<p style="text-align: justify;"><strong>Deprecation Notice</strong> in ./../../php/Twig/Node/Node.php<br />
Return type of TwigNodeNode::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice</p>
<p style="text-align: justify;"><strong>Backtrace</strong></p>
<p style="text-align: justify;">autoload.php: require(./../../php/Twig/Node/Node.php)<br />
{closure}(string &#8216;Twig\Node\Node&#8217;)<br />
TwigFilter.php: class_exists(string &#8216;Twig\Node\Node&#8217;)<br />
autoload.php: require(./../../php/Twig/TwigFilter.php)<br />
CoreExtension.php: {closure}(string &#8216;Twig\TwigFilter&#8217;)<br />
ExtensionSet.php: TwigExtensionCoreExtension-&gt;getFilters()<br />
ExtensionSet.php: TwigExtensionSet-&gt;initExtension()<br />
ExtensionSet.php: TwigExtensionSet-&gt;initExtensions()<br />
Environment.php: TwigExtensionSet-&gt;getFilter(string &#8216;error&#8217;)<br />
./../../../../../../var/lib/phpmyadmin/tmp/twig/49/49433f77d3462b2488dfef3699484854e3c55e4b348dae30482fadd1ce008731.php: TwigEnvironment-&gt;getFilter(string &#8216;error&#8217;)<br />
Template.php: __TwigTemplate_95dd0b99dd97a989e49170a5554a1e0ce6595b0346e92b70254c854745cea47e-&gt;doDisplay(<br />
array,<br />
array,<br />
)<br />
Template.php: TwigTemplate-&gt;displayWithErrorHandling(<br />
array,<br />
array,<br />
)<br />
Template.php: TwigTemplate-&gt;display(array)<br />
TemplateWrapper.php: TwigTemplate-&gt;render(<br />
array,<br />
array,<br />
)<br />
./libraries/classes/Template.php: TwigTemplateWrapper-&gt;render(array)<br />
./libraries/classes/Plugins/Auth/AuthenticationCookie.php: PhpMyAdminTemplate-&gt;render(<br />
string &#8216;login/header&#8217;,<br />
array,<br />
)<br />
./libraries/classes/Plugins/AuthenticationPlugin.php: PhpMyAdminPluginsAuthAuthenticationCookie-&gt;showLoginForm()<br />
./libraries/common.inc.php: PhpMyAdminPluginsAuthenticationPlugin-&gt;authenticate()<br />
./index.php: require_once(./libraries/common.inc.php)</p>
<p><strong><span style="color: #ff0000;">How to FIX</span></strong>:</p>
<p><span style="color: #ff0000;"><em><strong>Update your phpMyAdmin manualy&#8230;</strong></em></span></p>
<p>Enter to the directory:<br />
<strong>cd /usr/share/</strong></p>
<p>Rename your phpMyAdmin directory to phpmyadmin.bak:<br />
<strong>mv /usr/share/phpmyadmin/ /usr/share/phpmyadmin.bak</strong></p>
<p>Create a new phpMyAdmin folder:<br />
<strong>mkdir /usr/share/phpmyadmin/</strong></p>
<p>Enter to the directory:<br />
<strong>cd /usr/share/phpmyadmin/</strong></p>
<p>Download and extract phpMyAdmin:<br />
<strong>wget https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.tar.gz</strong><br />
<strong>tar xzf phpMyAdmin-*-all-languages.tar.gz</strong></p>
<p>List folders:<br />
<strong>ls</strong></p>
<p><em><strong>You should see a new folder phpMyAdmin-*-all-languages</strong></em></p>
<p>Move the contents of this folder to /usr/share/phpmyadmin:<br />
<strong>mv phpMyAdmin-*-all-languages/* /usr/share/phpmyadmin</strong></p>
<p>Make a copy of /usr/share/phpmyadmin/config.sample.inc.php:<br />
<strong>cp /usr/share/phpmyadmin/config.sample.inc.php /usr/share/phpmyadmin/config.inc</strong></p>
<p><em><strong>Edit the /usr/share/phpmyadmin/config.inc.php</strong></em></p>
<p>Search line:<br />
$cfg[&#8216;blowfish_secret&#8217;] = &#8221;; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */<br />
And change to (example):<br />
<strong>$cfg[&#8216;blowfish_secret&#8217;] = &#8216;2RQ&amp;Vb&amp;ShmZMJcSR&#8217;; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */</strong></p>
<p>Search line (example):<br />
$cfg[&#8216;TempDir&#8217;] = &#8216;/tmp&#8217;;<br />
And change to:<br />
<strong>$cfg[&#8216;TempDir&#8217;] = &#8216;/var/tmp/phpMyAdmin&#8217;;</strong><br />
if you don&#8217;t have this line (Temporary Directory Config), after line declare(strict_types=1);, add:<br />
<strong>$cfg[&#8216;TempDir&#8217;] = &#8216;/var/tmp/phpMyAdmin&#8217;;</strong></p>
<p>Create temporary directory:<br />
<strong>mkdir -p /var/tmp/phpMyAdmin</strong><br />
<strong>chown www-data:www-data /var/tmp/phpMyAdmin</strong><br />
<strong>chmod -R 700 /var/tmp/phpMyAdmin</strong></p>
<p>Cleanup:<br />
<strong>rm -rf /usr/share/phpmyadmin/phpMyAdmin-latest-all-languages.tar.gz</strong></p>
<p>Now check your new phpMyAdmin installation is working correctly, if working correctly you can delete backup folder:<br />
<strong>rm -rf /usr/share/phpmyadmin.bak</strong></p>
<div align="center"><strong>If you have any questions,<br />
write your question bellow in the &#8220;Leave a Reply&#8221; form.<br />
<em>Thanks!</em></strong></div>
<p>&nbsp;</p>
<div align="center"><a title="PayPal- Donate" href="https://www.paypal.com/donate/?hosted_button_id=5TA4H4TJHD4BJ" target="_blank" rel="noopener"><img decoding="async" title="PayPal - Donate" src="/img/paypal-donate.webp" alt="Paypal - Donate" /></a></div>
<div align="center"><strong>— Artificial Intelligence Comment —</strong></div>
<div align="center">•</div>
<p style="text-align: justify;">On November 28th, 2020, the PHP community issued a deprecation notice for the popular open source web application, phpMyAdmin. The notice came as part of the release of PHP 8, the latest version of the programming language. phpMyAdmin was originally developed as an interface used to manage MySQL databases on web servers, and has since grown into a widely used open source application that can also manage MariaDB, PostgreSQL, and other databases.</p>
<p style="text-align: justify;">The deprecation notice states that, in the interest of performance, security, and accuracy, the implementation of mysqlnd driver for phpMyAdmin will be removed in favor of mysqli (or its object-oriented variant). This new driver offers better handling of database queries and quoting of strings. The phpMyAdmin development team also noted that they will no longer support the use of the mysql extension in phpMyAdmin or any other application.</p>
<p style="text-align: justify;">In addition to these changes, the phpMyAdmin developers have also released modified versions of their existing application that are compatible with PHP 8. Users should upgrade their versions of phpMyAdmin in order to take advantage of the new features and performance improvements.</p>
<p style="text-align: justify;">The deprecation of the mysql extension in favor of mysqli has long been a worry for phpMyAdmin users. Although it may be difficult for some users to make the transition, the new benefits are hard to deny. The improved performance, security and accuracy provided by mysqli make the move to PHP 8 a wise decision for most, if not all, phpMyAdmin users.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.mario.chivale.com/phpmyadmin-deprecation-notice-in-php-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
