Mud OS/Fluff OS MySQL поддръжка


Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/melkor/public_html/melkor.eu/wp-content/plugins/geshi/geshi/geshi.php on line 2065

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/melkor/public_html/melkor.eu/wp-content/plugins/geshi/geshi/geshi.php on line 2065

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/melkor/public_html/melkor.eu/wp-content/plugins/geshi/geshi/geshi.php on line 2065

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/melkor/public_html/melkor.eu/wp-content/plugins/geshi/geshi/geshi.php on line 2065

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/melkor/public_html/melkor.eu/wp-content/plugins/geshi/geshi/geshi.php on line 2065

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/melkor/public_html/melkor.eu/wp-content/plugins/geshi/geshi/geshi.php on line 2065

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/melkor/public_html/melkor.eu/wp-content/plugins/geshi/geshi/geshi.php on line 2065

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/melkor/public_html/melkor.eu/wp-content/plugins/geshi/geshi/geshi.php on line 2065

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/melkor/public_html/melkor.eu/wp-content/plugins/geshi/geshi/geshi.php on line 2065

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/melkor/public_html/melkor.eu/wp-content/plugins/geshi/geshi/geshi.php on line 2065

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/melkor/public_html/melkor.eu/wp-content/plugins/geshi/geshi/geshi.php on line 2065

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/melkor/public_html/melkor.eu/wp-content/plugins/geshi/geshi/geshi.php on line 2065

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/melkor/public_html/melkor.eu/wp-content/plugins/geshi/geshi/geshi.php on line 2065

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/melkor/public_html/melkor.eu/wp-content/plugins/geshi/geshi/geshi.php on line 2065

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/melkor/public_html/melkor.eu/wp-content/plugins/geshi/geshi/geshi.php on line 2065

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/melkor/public_html/melkor.eu/wp-content/plugins/geshi/geshi/geshi.php on line 2065

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/melkor/public_html/melkor.eu/wp-content/plugins/geshi/geshi/geshi.php on line 2065

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/melkor/public_html/melkor.eu/wp-content/plugins/geshi/geshi/geshi.php on line 2065

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/melkor/public_html/melkor.eu/wp-content/plugins/geshi/geshi/geshi.php on line 2065

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/melkor/public_html/melkor.eu/wp-content/plugins/geshi/geshi/geshi.php on line 2065

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/melkor/public_html/melkor.eu/wp-content/plugins/geshi/geshi/geshi.php on line 2065

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/melkor/public_html/melkor.eu/wp-content/plugins/geshi/geshi/geshi.php on line 2065

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/melkor/public_html/melkor.eu/wp-content/plugins/geshi/geshi/geshi.php on line 2065

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/melkor/public_html/melkor.eu/wp-content/plugins/geshi/geshi/geshi.php on line 2065

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/melkor/public_html/melkor.eu/wp-content/plugins/geshi/geshi/geshi.php on line 2065

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/melkor/public_html/melkor.eu/wp-content/plugins/geshi/geshi/geshi.php on line 2065

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/melkor/public_html/melkor.eu/wp-content/plugins/geshi/geshi/geshi.php on line 2065

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/melkor/public_html/melkor.eu/wp-content/plugins/geshi/geshi/geshi.php on line 2065

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/melkor/public_html/melkor.eu/wp-content/plugins/geshi/geshi/geshi.php on line 2065

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/melkor/public_html/melkor.eu/wp-content/plugins/geshi/geshi/geshi.php on line 2065

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/melkor/public_html/melkor.eu/wp-content/plugins/geshi/geshi/geshi.php on line 2065
VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

Тъй като ми писна при всеки ъпдейт на FluffOS да се ровя да търся какво трябваше да променя в сорса за да въври MySQL поддръжката – слагам нещата тук. Замислям се дали да не си пазя копие на db.c файлa…

Добавяне на MySQL поддръжка за MudOS/FluffOS

Отворете packages/db.c и погледнете около 688-ми ред във функцията MySQL_connect:
Променете това:

span style="color: #ff0000;">"MySQL_connect"

На това:

span style="color: #ff0000;">"MySQL_connect"//c->mysql.handle = mysql_connect(tmp, host, username, password); 

След това, във функцията MySQL_fetch променете това:

#ifndef NO_BUFFER_TYPE
#else 

На това:

#ifndef NO_BUFFER_TYPE
#else 

Стартирайте командата mysql_config и тя трябва да изпише нещо от сорта на:

 

Копирайте съдържанието на –libs във файла system_libs.
В local_options трябва да добавите следните дефиниции:

#define PACKAGE_DB
#ifdef PACKAGE_DB
#undef USE_MSQL 1
#define USE_MYSQL 2
#define DEFAULT_DB USE_MYSQL
#define INCL_MYSQL_MYSQL_H
#define MYSQL_SOCKET_ADDRESS    "/tmp/mysql.sock"
#endif 

Във файла edit_source.c трябва да има ред като този. Трябва да сте сигурни че пътят до mysql.h съвпада с този на –include опцията на mysql_config.

span style="color: #ff0000;">"INCL_MYSQL_MYSQL_H", "/usr/include/mysql/mysql.h"))) {

За melkor

Дългогодишен UNIX/Linux потребител. В момента работи като Senior UNIX Administrator в HP GDBC.
Публикувано в TMI-2 с етикети , , . Постоянна връзка.

Този сайт използва Akismet за намаляване на спама. Научете как се обработват данните ви за коментари.