I recently downgraded from Google Chrome 6.x (a developmental version) back to the officially released 5.x version. In the process all of my Firefox style keywords (aka searches) were lost. You can use the following process to transfer your old keywords to a new installation of Chrome or maybe to a different machine on which you are also using Google Chrome. I took advantage of the built-in sqlite3 database utility to do this.
Note: all processes must take place when Chrome is not running.
Export the keywords from your original Chrome install: Google Chrome stores its keyword data in ~/Library/Application Support/Google/Chrome/Default. Navigate to that location in the Terminal and issue the following command:
Open the keywords.sql file you just created in your favorite text editor and delete everything between 'BEGIN TRANSACTION' and the third 'INSERT INTO keywords line' (which should be the Bing entry). Your first keyword's first value should be 5. Scroll down to the last 'INSERT INTO keywords' statement and delete everything after that down to but not including the last line 'COMMIT', and then save the file.
Transfer the keywords.sql file to the new location or if you are installing into a new Chrome install, then move your old Default directory out of the way, launch Google Chrome once to create a new Default directory, and do a single search (it doesn't matter where) to create the new Web Data file where the data is stored. Quit Google Chrome. Transfer your keywords.sql file to the new location.
In the Terminal, navigate to the new Default directory and run the following command:
Launch Google Chrome and open Preferences » Search to verify your keyword searches were transferred.
[crarko adds: I haven't tested this one.]
Note: all processes must take place when Chrome is not running.
Export the keywords from your original Chrome install: Google Chrome stores its keyword data in ~/Library/Application Support/Google/Chrome/Default. Navigate to that location in the Terminal and issue the following command:
sqlite3 "Web Data".dump > keywords.sqlThis will export your current data to a SQL command file. If you want to transfer all of the data including autofill data, etc. to your new installation or location then skip the next step below.
Open the keywords.sql file you just created in your favorite text editor and delete everything between 'BEGIN TRANSACTION' and the third 'INSERT INTO keywords line' (which should be the Bing entry). Your first keyword's first value should be 5. Scroll down to the last 'INSERT INTO keywords' statement and delete everything after that down to but not including the last line 'COMMIT', and then save the file.
Transfer the keywords.sql file to the new location or if you are installing into a new Chrome install, then move your old Default directory out of the way, launch Google Chrome once to create a new Default directory, and do a single search (it doesn't matter where) to create the new Web Data file where the data is stored. Quit Google Chrome. Transfer your keywords.sql file to the new location.
In the Terminal, navigate to the new Default directory and run the following command:
sqlite3 "Web Data" < keywords.sqlIf you get errors about 'PRIMARY KEY' it means you have a duplicate numbered entry for search. If you are starting from scratch you probably won't have that problem.
Launch Google Chrome and open Preferences » Search to verify your keyword searches were transferred.
[crarko adds: I haven't tested this one.]
•
[6,585 views]

