Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I enable the federated engine in mysql after installation?

I have mysql 5.1.44:

 mysql> show engines; +------------+---------+ | Engine     | Support |  +------------+---------+ | ndbcluster | NO      |  | MRG_MYISAM | YES     |  | BLACKHOLE  | YES     |  | CSV        | YES     |  | MEMORY     | YES     |  | FEDERATED  | NO      |  | ARCHIVE    | YES     |  | InnoDB     | YES     |  | MyISAM     | DEFAULT | 

I need to enable federated engine in mysql. How can I do it?

like image 845
Alaa Avatar asked Mar 06 '11 11:03

Alaa


People also ask

What is FEDERATED table in MySQL?

A FEDERATED table consists of two elements: A remote server with a database table, which in turn consists of the table definition (stored in the MySQL data dictionary) and the associated table. The table type of the remote table may be any type supported by the remote mysqld server, including MyISAM or InnoDB .

How do I change the default engine in MySQL?

The default engine is InnoDB in MySQL 8.0. You can specify the default engine by using the --default-storage-engine server startup option, or by setting the default-storage-engine option in the my. cnf configuration file.

What is FEDERATED engine?

The FEDERATED storage engine lets you access data from a remote MySQL database without using replication or cluster technology. Querying a local FEDERATED table automatically pulls the data from the remote (federated) tables. No data is stored on the local tables.


1 Answers

Edit /etc/my.cnf and in the [mysqld] section, add the line:

federated 

It's equivalent to specifying --federated on the command line

like image 187
Lina Avatar answered Sep 19 '22 02:09

Lina